|
Post by valse on Oct 18, 2024 8:28:58 GMT -5
I'mtrying to make a Milestone and I got this:
The Sims 4 Studio - Version 3.2.2.9 System.NullReferenceException: Object reference not set to an instance of an object. at S4Studio.ViewModels.Warehouse.WarehousePackageViewModel.<>c__DisplayClass103_0.<Find>b__0(WarehouseResourceViewModel x) in X:\TheS4Studio\S4Studio.Shared\ViewModels\Warehouse\WarehousePackageViewModel.cs:line 592 at System.Linq.Enumerable.TryGetFirst[TSource](IEnumerable`1 source, Func`2 predicate, Boolean& found) at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source, Func`2 predicate) at S4Studio.ViewModels.Warehouse.WarehousePackageViewModel.Find(IResourceKey key) in X:\TheS4Studio\S4Studio.Shared\ViewModels\Warehouse\WarehousePackageViewModel.cs:line 590 at S4Studio.ViewModels.Warehouse.WarehousePackageViewModel.BatchImport(IEnumerable`1 filepaths) in X:\TheS4Studio\S4Studio.Shared\ViewModels\Warehouse\WarehousePackageViewModel.cs:line 282
|
|
|
Post by mauvemorn on Oct 19, 2024 3:28:58 GMT -5
Hi, andrewDo you happen to know what exactly s4s wants when it gives "Object reference not set to an instance of an object". This is a very common error but i never know what it is related to
|
|
|
Post by andrew on Oct 19, 2024 9:57:16 GMT -5
Hi mauvemorn, That really just means that something the code was expecting to be present was not found. Sometimes it is because something really isn't there, like some of the "debug" objects reference resources that aren't in the game files. In that case, I adjust the code to anticipate that something shouldn't be there. I'm not sure about this one without replicating the error myself. Hi valse, Can you give some more details on what you were doing when you got this error? I see that you were batch importing files. Was this a brand new empty package? Also, what kind of files were you importing?
|
|