Skip to content

Mod compatibility checker - null issue #386

@originalfoo

Description

@originalfoo

Subaru had this error on the mods incompatibility checker (LABS prior to PR #333) - only happened one time, I'm unable to reproduce it.

However, I'll add some try/catch wrappers to the updates in #333 so future errors won't impact end-users.

Note: Mac platform - Mac has known issues with Linq, we should avoid Linq wherever possible. I'll try and rip out the Linq code from #333 - it's only used in one place IIRC, a .last() somewhere.

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentNullException: Argument cannot be null.
Parameter name: source
  at System.Linq.Check.Source (System.Object source) [0x00000] in <filename unknown>:0 
  at System.Linq.Enumerable.ToArray[PublishedFileId] (IEnumerable`1 source) [0x00000] in <filename unknown>:0 
  at TrafficManager.Util.ModsCompatibilityChecker.GetUserModsList () [0x00000] in <filename unknown>:0 
  at TrafficManager.Util.ModsCompatibilityChecker..ctor () [0x00000] in <filename unknown>:0 
  at TrafficManager.TrafficManagerMod.OnGameIntroLoaded () [0x00000] in <filename unknown>:0 
  at TrafficManager.TrafficManagerMod.OnEnabled () [0x00000] in <filename unknown>:0 
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception

Metadata

Metadata

Assignees

Labels

BUGDefect detectedCOMPATIBILITYMod (in)compatibility / checkerirreproducibleUnable to reproduce problemtechnicalTasks that need to be performed in order to improve quality and maintainability

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions