0.1h - Evade NPE on manual Factions removal in DB.

This commit is contained in:
ulumulu1510 2016-02-26 15:28:43 +01:00 committed by Olof Larsson
parent 08024bd4f9
commit 47d86bf28b

View File

@ -76,6 +76,7 @@ public class CmdFactionsRelationWishes extends FactionsCommand
{ {
Rel rel = entry.getValue(); Rel rel = entry.getValue();
Faction fac = FactionColl.get().getFixed(entry.getKey()); Faction fac = FactionColl.get().getFixed(entry.getKey());
if (fac == null) continue;
// A wish is not a wish anymore if both factions have atleast equal "wishes" // A wish is not a wish anymore if both factions have atleast equal "wishes"
if (fac.getRelationTo(faction).isAtLeast(rel)) continue; if (fac.getRelationTo(faction).isAtLeast(rel)) continue;