Skip to content

Commit

Permalink
screenshot plugin: fix exception when taking screenshots on login
Browse files Browse the repository at this point in the history
  • Loading branch information
Rprrr authored and Adam- committed Apr 30, 2018
1 parent 3c9ac87 commit 60a151e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ void takeScreenshot(String fileName, boolean displayDate)
}

File playerFolder;
if (client.getLocalPlayer() != null)
if (client.getLocalPlayer() != null && client.getLocalPlayer().getName() != null)
{
playerFolder = new File(SCREENSHOT_DIR, client.getLocalPlayer().getName());
}
Expand Down

0 comments on commit 60a151e

Please sign in to comment.