Game Version number: Latest stable (1.3.0.157
Modded?: No
In a world with US and USSR faction manager, spawning a FIA (or any other non-existent faction) AI and asking it's factionKey, crashes. Wouldn't it make more sense to return null or <empty>?
SCRIPT (E): Virtual Machine Exception
Reason: NULL pointer to instance. Variable '#return'
Function: 'GetAIAgentFactionKey'
Crash happens after the call to proto external Faction GetAffiliatedFaction();