{"action":"opened","issue":{"url":"https://api.github.com/repos/webanno/webanno/issues/271","repository_url":"https://api.github.com/repos/webanno/webanno","labels_url":"https://api.github.com/repos/webanno/webanno/issues/271/labels{/name}","comments_url":"https://api.github.com/repos/webanno/webanno/issues/271/comments","events_url":"https://api.github.com/repos/webanno/webanno/issues/271/events","html_url":"https://github.com/webanno/webanno/issues/271","id":154926719,"number":271,"title":"NPE when no layers are selected","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":"open","locked":false,"assignee":{"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},"milestone":{"url":"https://api.github.com/repos/webanno/webanno/milestones/9","html_url":"https://github.com/webanno/webanno/milestones/2.3.2","labels_url":"https://api.github.com/repos/webanno/webanno/milestones/9/labels","id":1705450,"number":9,"title":"2.3.2","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":2,"closed_issues":0,"state":"open","created_at":"2016-04-14T08:57:42Z","updated_at":"2016-05-15T19:54:49Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2016-05-15T19:54:49Z","updated_at":"2016-05-15T19:54:49Z","closed_at":null,"body":"* Open any document in annotation editor\r\n* Unselect all layers in the settings dialog\r\n* Try creating an annotation\r\n\r\n```\r\nCaused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0\r\n\tat java.util.ArrayList.rangeCheck(ArrayList.java:653)\r\n\tat java.util.ArrayList.get(ArrayList.java:429)\r\n\tat de.tudarmstadt.ukp.clarin.webanno.brat.annotation.SpanAnnotationModalWindowPage$AnnotationDialogForm.<init>(SpanAnnotationModalWindowPage.java:144)\r\n\tat de.tudarmstadt.ukp.clarin.webanno.brat.annotation.SpanAnnotationModalWindowPage.<init>(SpanAnnotationModalWindowPage.java:645)\r\n\tat de.tudarmstadt.ukp.clarin.webanno.brat.annotation.BratAnnotator.openSpanAnnotationDialog(BratAnnotator.java:365)\r\n\tat de.tudarmstadt.ukp.clarin.webanno.brat.annotation.BratAnnotator.access$12(BratAnnotator.java:356)\r\n\tat de.tudarmstadt.ukp.clarin.webanno.brat.annotation.BratAnnotator$2.respond(BratAnnotator.java:263)\r\n\tat org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:633)\r\n\t... 71 more\r\n```\r\n\r\nWebAnno -- 2.3.2-SNAPSHOT (2016-05-02 14:02:18, build 10c26d67eca3e1f687a0fde008eec0b1c9a85ce2)"}}