{"action":"opened","issue":{"url":"https://api.github.com/repos/Parabot/Missing-hooks/issues/10","labels_url":"https://api.github.com/repos/Parabot/Missing-hooks/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/Parabot/Missing-hooks/issues/10/comments","events_url":"https://api.github.com/repos/Parabot/Missing-hooks/issues/10/events","html_url":"https://github.com/Parabot/Missing-hooks/issues/10","id":54574657,"number":10,"title":"PKHonor getDef.getId() NPE","user":{"login":"fryslan","id":2097436,"avatar_url":"https://avatars.githubusercontent.com/u/2097436?v=3","gravatar_id":"","url":"https://api.github.com/users/fryslan","html_url":"https://github.com/fryslan","followers_url":"https://api.github.com/users/fryslan/followers","following_url":"https://api.github.com/users/fryslan/following{/other_user}","gists_url":"https://api.github.com/users/fryslan/gists{/gist_id}","starred_url":"https://api.github.com/users/fryslan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fryslan/subscriptions","organizations_url":"https://api.github.com/users/fryslan/orgs","repos_url":"https://api.github.com/users/fryslan/repos","events_url":"https://api.github.com/users/fryslan/events{/privacy}","received_events_url":"https://api.github.com/users/fryslan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-16T13:22:07Z","updated_at":"2015-01-16T13:22:07Z","closed_at":null,"body":"This code is giving met an NPE when setting the id variable.\r\n\r\nfor (Npc npc : Npcs.getNearest()) {\r\n                Npc current = npc;\r\n                if (current != null && current.getDef() != null) {\r\n                    int id = current.getDef().getId();\r\n                    if (!LoadedNpcsList.getItems().contains(id + \" - \" + new Monsters().getMonsterByID(id))) {\r\n                        LoadedNpcsList.getItems().add(id + \" - \" + new Monsters().getMonsterByID(id));\r\n                    }\r\n                }\r\n            }\r\n\r\nThis is the error:\r\n\r\njava.lang.NullPointerException\r\n\tat org.rev317.min.api.wrappers.NpcDef.getId(NpcDef.java:21)\r\n\r\nI think the class accessor is null but im not sure."}}