MidoriKami / SortaKinda

SortaKinda is a XivLauncher/Dalamud plugin.
Other
10 stars 6 forks source link

NullException after login in 7.1 #34

Open Infiziert90 opened 2 hours ago

Infiziert90 commented 2 hours ago

Must have happend around 1-2 Minutes after logging in, can't say 100% what i did at that point

20:10:56.710 | ERR | [GameInventoryPluginScoped] ["SortaKinda"] Exception during "InventoryChanged" callback
    System.ArgumentNullException: Value cannot be null. (Parameter 'source')
       at System.Linq.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)
       at System.Linq.Enumerable.Select[TSource,TResult](IEnumerable`1 source, Func`2 selector)
       at SortaKinda.Controllers.ModuleController.<>c__DisplayClass7_0.<InventoryChanged>b__0(InventoryType type) in /work/repo/SortaKinda/Controllers/ModuleController.cs:line 63
       at System.Collections.Generic.HashSet`1.RemoveWhere(Predicate`1 match)
       at SortaKinda.Controllers.ModuleController.InventoryChanged(IReadOnlyCollection`1 events) in /work/repo/SortaKinda/Controllers/ModuleController.cs:line 63
       at Dalamud.Game.Inventory.GameInventoryPluginScoped.InvokeChanged(IReadOnlyCollection`1 data) in C:\goatsoft\companysecrets\dalamud\\Game\Inventory\GameInventory.cs:line 438
MidoriKami commented 2 hours ago

Very confused on this one, the faulting line is reported as inventoryTypes.RemoveWhere(type => !module.InventoryTypes.Contains(type)); But I don't see how anything there can be null, without there also being an ArgumentOutOfRangeException

Infiziert90 commented 2 hours ago

Log was empty otherwise, can't tell you anymore sadly I will keep checking the log between restarts if it happens again