Null pointer check for game achievement

This commit is contained in:
BuildTools 2015-08-18 07:55:43 -07:00
parent baeef2802b
commit 710e1c3ff9

View File

@ -1640,7 +1640,7 @@ public final class PurpleBot {
* @param achievement
*/
public void gameAchievement(Player player, Achievement achievement) {
if (!this.isConnected()) {
if (!this.isConnected() || achievement == null || player == null) {
return;
}
String message = achievement.toString();