Try starting with
If the operand is null, then Parse() will throw that exception.
Code Select
if (codes[i].operand!=null &&....)
If the operand is null, then Parse() will throw that exception.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
LOG="-logfile /tmp/rimworld_log_$UID"
# or perhaps
LOG="-logfile /tmp/rimworld_$UID.log"

yield return new CodeInstruction(OpCodes.Call, // or the virtual call if appropriate
HarmonyLib.AccessTools.Method(typeof(WhateverClass), "NameOfMethod"));
// also ....Method("WhateverClass:NameOfMethod"));