fix for /f disband causing NPE if you provided a bad (nonexistent) faction tag

This commit is contained in:
Brettflan committed 2011-06-11 17:01:06 -05:00
1 parent 4cc13707cc
commit 3f0d330d6e
1 file changed
+1 -1
@@ -23,7 +23,7 @@ public class FCommandDisband extends FBaseCommand {
if( parameters.size() > 0) {
Faction faction = Faction.findByTag(parameters.get(0));
if( faction.getId() > 0 ) {
if( faction != null && faction.getId() > 0 ) {
me.sendMessage("Faction " + faction.getTag() + " got disbanded");
Faction.delete( faction.getId() );
} else {