{"action":"closed","issue":{"url":"https://api.github.com/repos/webanno/webanno/issues/270","repository_url":"https://api.github.com/repos/webanno/webanno","labels_url":"https://api.github.com/repos/webanno/webanno/issues/270/labels{/name}","comments_url":"https://api.github.com/repos/webanno/webanno/issues/270/comments","events_url":"https://api.github.com/repos/webanno/webanno/issues/270/events","html_url":"https://github.com/webanno/webanno/issues/270","id":154926068,"number":270,"title":"Disabling all layers in the annotation settings dialog causes NPE","user":{"login":"reckart","id":1410238,"avatar_url":"https://avatars.githubusercontent.com/u/1410238?v=3","gravatar_id":"","url":"https://api.github.com/users/reckart","html_url":"https://github.com/reckart","followers_url":"https://api.github.com/users/reckart/followers","following_url":"https://api.github.com/users/reckart/following{/other_user}","gists_url":"https://api.github.com/users/reckart/gists{/gist_id}","starred_url":"https://api.github.com/users/reckart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reckart/subscriptions","organizations_url":"https://api.github.com/users/reckart/orgs","repos_url":"https://api.github.com/users/reckart/repos","events_url":"https://api.github.com/users/reckart/events{/privacy}","received_events_url":"https://api.github.com/users/reckart/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/webanno/webanno/labels/Annotation","name":"Annotation","color":"ededed"},{"url":"https://api.github.com/repos/webanno/webanno/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/webanno/webanno/milestones/1","html_url":"https://github.com/webanno/webanno/milestones/3.0.0","labels_url":"https://api.github.com/repos/webanno/webanno/milestones/1/labels","id":1141640,"number":1,"title":"3.0.0","description":"","creator":{"login":"reckart","id":1410238,"avatar_url":"https://avatars.githubusercontent.com/u/1410238?v=3","gravatar_id":"","url":"https://api.github.com/users/reckart","html_url":"https://github.com/reckart","followers_url":"https://api.github.com/users/reckart/followers","following_url":"https://api.github.com/users/reckart/following{/other_user}","gists_url":"https://api.github.com/users/reckart/gists{/gist_id}","starred_url":"https://api.github.com/users/reckart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reckart/subscriptions","organizations_url":"https://api.github.com/users/reckart/orgs","repos_url":"https://api.github.com/users/reckart/repos","events_url":"https://api.github.com/users/reckart/events{/privacy}","received_events_url":"https://api.github.com/users/reckart/received_events","type":"User","site_admin":false},"open_issues":29,"closed_issues":198,"state":"open","created_at":"2015-05-31T10:52:24Z","updated_at":"2016-07-09T10:21:13Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2016-05-15T19:42:40Z","updated_at":"2016-07-09T10:21:13Z","closed_at":"2016-07-09T10:21:13Z","body":"* open any document in annotation mode\r\n* open the settings panel and disable **all** annotation layers\r\n* try changing the \"layer\" dropdown in the annotation detail panel (which also hasn't been updated to show nothing anymore!)\r\n\r\nThis causes an NPE:\r\n\r\n```\r\nCaused by: java.lang.NullPointerException\r\n\tat de.tudarmstadt.ukp.clarin.webanno.brat.annotation.component.AnnotationDetailEditorPanel$LayerSelector$1.onUpdate(AnnotationDetailEditorPanel.java:2292)\r\n\tat org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior.onEvent(AjaxFormComponentUpdatingBehavior.java:153)\r\n\tat org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:145)\r\n\tat org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:654)\r\n\t... 79 more\r\n```\r\n\r\nReopening the same document again doesn't cause an NPE, but instead shows the layer dropdown with \"Choose one\".\r\n\r\nSo the fix is probably to properly reset and reload the UI, in particular the layer dropdown after closing the settings dialog.\r\n\r\nWebAnno -- 3.0.0-SNAPSHOT (2016-05-13 21:14:07, build 1339aaa570799ec58b6bbe6b9b174b435c51e7eb)"}}
{"actor":{"display_login":"seyyaw"}}