Pull out null check because console can have null faction. Fixes #375.
This commit is contained in:
parent
8af57197ce
commit
2b0638f54f
@ -38,9 +38,10 @@ public class CmdShow extends FCommand {
|
||||
Faction faction = myFaction;
|
||||
if (this.argIsSet(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
|
||||
|
Loading…
Reference in New Issue
Block a user