screenshot plugin: fix exception when taking screenshots on login
This commit is contained in:
@@ -468,7 +468,7 @@ public class ScreenshotPlugin extends Plugin
|
|||||||
}
|
}
|
||||||
|
|
||||||
File playerFolder;
|
File playerFolder;
|
||||||
if (client.getLocalPlayer() != null)
|
if (client.getLocalPlayer() != null && client.getLocalPlayer().getName() != null)
|
||||||
{
|
{
|
||||||
playerFolder = new File(SCREENSHOT_DIR, client.getLocalPlayer().getName());
|
playerFolder = new File(SCREENSHOT_DIR, client.getLocalPlayer().getName());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user