Ludeon Forums

RimWorld => Mods => Mod bugs => Topic started by: EgotisticalElf on July 24, 2021, 12:05:11 PM

Title: [1.3.3069] PawnColumnWorker_Guest throws null reference when pawn isnt a guest
Post by: EgotisticalElf on July 24, 2021, 12:05:11 PM
Misc. Robots (https://steamcommunity.com/sharedfiles/filedetails/?id=724602224) adds worker bots that are not colony pawns, but are controllable by the player.
Misc. Robots WorkTab Support (https://steamcommunity.com/sharedfiles/filedetails/?id=2271338001) allows the player to specifically control which WorkTypes these robots can do.

These robots are not any guests, but the PawnColumnWorker_Guest column throws a null reference since pawn?.guest is null.

Can we add a null check on the guest variable inside GetIconFor and GetIconTip for a null guest reference?

Thanks,

EgotisticalElf

(first bug, sorry if i missed something critical)