diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index 39519e99..8b00993b 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -489,7 +489,10 @@ public class Mob extends AbstractIntelligenceAgent { mobile.firstName = pirateName; - mobile.contractUUID = contract.getContractID(); + if (contract == null) + mobile.contractUUID = 0; + else + mobile.contractUUID = contract.getContractID(); Mob mob;