Skip to content
This repository has been archived by the owner on Jul 27, 2019. It is now read-only.

Commit

Permalink
Null pointer check for game achievement
Browse files Browse the repository at this point in the history
  • Loading branch information
cnaude committed Aug 18, 2015
1 parent e655a1b commit a14e738
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/cnaude/purpleirc/PurpleBot.java
Expand Up @@ -1626,7 +1626,7 @@ && isPlayerInValidWorld(player, channelName)) {
* @param achievement
*/
public void gameAchievement(Player player, Achievement achievement) {
if (!this.isConnected()) {
if (!this.isConnected() || achievement == null || player == null) {
return;
}
String message = achievement.toString();
Expand Down

0 comments on commit a14e738

Please sign in to comment.