Skip to content

Instantly share code, notes, and snippets.

@phrohdoh
Created September 11, 2016 16:00
Show Gist options
  • Save phrohdoh/c98f11879a77f889e92d49ac35459fc5 to your computer and use it in GitHub Desktop.
Save phrohdoh/c98f11879a77f889e92d49ac35459fc5 to your computer and use it in GitHub Desktop.
OpenRA InstalledMods / InitializeMod KeyNotFoundException (we get key "modchooser" unsafely; no ContainsKey check)
Exception of type `System.Collections.Generic.KeyNotFoundException`: The given key was not present in the dictionary.
at System.ThrowHelper.ThrowKeyNotFoundException () [0x00000] in /private/tmp/mono-20160811-98271-vvenuo/mono-4.4.2/external/referencesource/mscorlib/system/throwhelper.cs:68
at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (System.Collections.Generic.TKey key) <0x10a3c0250 + 0x0004a> in <filename unknown>:0
at OpenRA.InstalledMods.get_Item (System.String key) [0x00008] in openra/OpenRA.Game//InstalledMods.cs:126
at OpenRA.Game.InitializeMod (System.String mod, OpenRA.Arguments args) [0x00149] in openra/OpenRA.Game//Game.cs:373
at OpenRA.Game.Initialize (OpenRA.Arguments args) [0x0033d] in openra/OpenRA.Game//Game.cs:322
at OpenRA.Program.Run (System.String[] args) [0x00007] in openra/OpenRA.Game//Support/Program.cs:117
at OpenRA.Program.Main (System.String[] args) [0x00050] in openra/OpenRA.Game//Support/Program.cs:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment