{"action":"created","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":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-01-16T13:22:07Z","updated_at":"2015-02-03T13:20:52Z","closed_at":"2015-02-03T13:20:52Z","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."},"comment":{"url":"https://api.github.com/repos/Parabot/Missing-hooks/issues/comments/72648609","html_url":"https://github.com/Parabot/Missing-hooks/issues/10#issuecomment-72648609","issue_url":"https://api.github.com/repos/Parabot/Missing-hooks/issues/10","id":72648609,"user":{"login":"JKetelaar","id":3681904,"avatar_url":"https://avatars.githubusercontent.com/u/3681904?v=3","gravatar_id":"","url":"https://api.github.com/users/JKetelaar","html_url":"https://github.com/JKetelaar","followers_url":"https://api.github.com/users/JKetelaar/followers","following_url":"https://api.github.com/users/JKetelaar/following{/other_user}","gists_url":"https://api.github.com/users/JKetelaar/gists{/gist_id}","starred_url":"https://api.github.com/users/JKetelaar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JKetelaar/subscriptions","organizations_url":"https://api.github.com/users/JKetelaar/orgs","repos_url":"https://api.github.com/users/JKetelaar/repos","events_url":"https://api.github.com/users/JKetelaar/events{/privacy}","received_events_url":"https://api.github.com/users/JKetelaar/received_events","type":"User","site_admin":false},"created_at":"2015-02-03T13:20:52Z","updated_at":"2015-02-03T13:20:52Z","body":"Resolved as far as I can see."}}