check null here

This commit is contained in:
JohnCorby 2022-12-28 12:16:56 -08:00
parent ca07710866
commit ce4072fed0

View File

@ -614,7 +614,7 @@ namespace NewHorizons.Builder.Props
nomaiWallText.SetTextAsset(text); nomaiWallText.SetTextAsset(text);
// #433 fuzzy stranger text // #433 fuzzy stranger text
if (info.arcInfo.Any(x => x.type == PropModule.NomaiTextArcInfo.NomaiTextArcType.Stranger)) if (info.arcInfo != null && info.arcInfo.Any(x => x.type == PropModule.NomaiTextArcInfo.NomaiTextArcType.Stranger))
{ {
StreamingHandler.SetUpStreaming(AstroObject.Name.RingWorld, sector); StreamingHandler.SetUpStreaming(AstroObject.Name.RingWorld, sector);
} }