make sure AmmoHangar and LootHangar are not null before trying to use them.