screenshot plugin: fix exception when taking screenshots on login

This commit is contained in:
Rprrr
2018-04-30 18:48:51 +02:00
committed by Adam
parent c8b5a3a3a3
commit 31c27292e0

View File

@@ -468,7 +468,7 @@ public class ScreenshotPlugin extends Plugin
}
File playerFolder;
if (client.getLocalPlayer() != null)
if (client.getLocalPlayer() != null && client.getLocalPlayer().getName() != null)
{
playerFolder = new File(SCREENSHOT_DIR, client.getLocalPlayer().getName());
}