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

Commit

Permalink
Check for null when running ReportRTS command from console.
Browse files Browse the repository at this point in the history
  • Loading branch information
cnaude committed Apr 30, 2014
1 parent b297559 commit f993734
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -5,7 +5,7 @@

<groupId>com.cnaude</groupId>
<artifactId>PurpleIRC</artifactId>
<version>2.1.13</version>
<version>2.1.14-SNAPSHOT</version>
<name>PurpleIRC</name>
<description>A CraftBukkit plugin for bridging game chat with IRC. Connect to any number of IRC servers and channels simultaneously.</description>
<url>http://dev.bukkit.org/server-mods/purpleirc/</url>
Expand Down
Expand Up @@ -423,7 +423,12 @@ public String reportRTSTokenizer(String pName, String template, HelpRequest requ
if (modName == null) {
modName = "";
} else {
displayModName = this.getPlayer(modName).getDisplayName();
Player player = this.getPlayer(modName);
if (player != null) {
displayModName = player.getDisplayName();
} else {
displayModName = modName;
}
}
if (name == null) {
name = "";
Expand Down

0 comments on commit f993734

Please sign in to comment.