Pull out null check because console can have null faction. Fixes #375.

This commit is contained in:
drtshock 2015-05-07 10:39:04 -05:00
parent 8af57197ce
commit 2b0638f54f
1 changed files with 4 additions and 3 deletions

View File

@ -38,9 +38,10 @@ public class CmdShow extends FCommand {
Faction faction = myFaction; Faction faction = myFaction;
if (this.argIsSet(0)) { if (this.argIsSet(0)) {
faction = this.argAsFaction(0); faction = this.argAsFaction(0);
if (faction == null) { }
return;
} if (faction == null) {
return;
} }
// if economy is enabled, they're not on the bypass list, and this // if economy is enabled, they're not on the bypass list, and this