{"action":"created","issue":{"url":"https://api.github.com/repos/thechunknetwork/RedisBungee/issues/22","labels_url":"https://api.github.com/repos/thechunknetwork/RedisBungee/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/thechunknetwork/RedisBungee/issues/22/comments","events_url":"https://api.github.com/repos/thechunknetwork/RedisBungee/issues/22/events","html_url":"https://github.com/thechunknetwork/RedisBungee/issues/22","id":92838771,"number":22,"title":"Issue while updating to 0.3.6 : unexpected NPE","user":{"login":"alphartdev","id":4451275,"avatar_url":"https://avatars.githubusercontent.com/u/4451275?v=3","gravatar_id":"","url":"https://api.github.com/users/alphartdev","html_url":"https://github.com/alphartdev","followers_url":"https://api.github.com/users/alphartdev/followers","following_url":"https://api.github.com/users/alphartdev/following{/other_user}","gists_url":"https://api.github.com/users/alphartdev/gists{/gist_id}","starred_url":"https://api.github.com/users/alphartdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphartdev/subscriptions","organizations_url":"https://api.github.com/users/alphartdev/orgs","repos_url":"https://api.github.com/users/alphartdev/repos","events_url":"https://api.github.com/users/alphartdev/events{/privacy}","received_events_url":"https://api.github.com/users/alphartdev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-03T09:47:05Z","updated_at":"2015-07-04T19:32:23Z","closed_at":null,"body":"Hi Tux,\r\nsome of my users started to have errors after updating to 0.3.6, so I investigated and managed to replicate bugs on my side. There may be several, but for now I just reproduced one : \r\nThe bug reported was an NPE at line 105 of BAT in the Lookup formatter (https://github.com/alphartdev/BungeeAdminTools/blob/master/src/main/java/fr/Alphart/BAT/Modules/Core/LookupFormatter.java#L105).\r\nYou'll see that before this line of code there was a condition : `if the player whose UUID is pUUID is online, then` so that means that if the line 105 is reached this player is online. Then I checked which variable was null and it appears that this code `RedisBungee.getApi().getServerFor(pUUID)` returned null, which then triggered an NPE  as I was trying to call `getName()` on a null ServerInfo.\r\nAnd that's the problem, the player is considered online (`isPlayerOnline(pUUID)`) but it doesn't have a server (`RedisBungee.getApi().getServerFor(pUUID) returns null`). \r\nAny ideas what might be causing that ?"},"comment":{"url":"https://api.github.com/repos/thechunknetwork/RedisBungee/issues/comments/118544783","html_url":"https://github.com/thechunknetwork/RedisBungee/issues/22#issuecomment-118544783","issue_url":"https://api.github.com/repos/thechunknetwork/RedisBungee/issues/22","id":118544783,"user":{"login":"minecrafter","id":979956,"avatar_url":"https://avatars.githubusercontent.com/u/979956?v=3","gravatar_id":"","url":"https://api.github.com/users/minecrafter","html_url":"https://github.com/minecrafter","followers_url":"https://api.github.com/users/minecrafter/followers","following_url":"https://api.github.com/users/minecrafter/following{/other_user}","gists_url":"https://api.github.com/users/minecrafter/gists{/gist_id}","starred_url":"https://api.github.com/users/minecrafter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minecrafter/subscriptions","organizations_url":"https://api.github.com/users/minecrafter/orgs","repos_url":"https://api.github.com/users/minecrafter/repos","events_url":"https://api.github.com/users/minecrafter/events{/privacy}","received_events_url":"https://api.github.com/users/minecrafter/received_events","type":"User","site_admin":false},"created_at":"2015-07-04T19:32:23Z","updated_at":"2015-07-04T19:32:23Z","body":"I don't know what the issue is exactly, but my changes to `DataManager` should have not affected anything.\r\n\r\nHow often can you reproduce the issue? How can I reproduce the issue?"}}