Added NPE failsafe

Check if factionName is null