zencq / NomNom

NomNom is the most complete savegame editor for NMS but also shows additional information around the data you're about to change. You can also easily look up each item individually to examine its attributes, independently of a savegame, or get other useful information that are not related to a specific savegame (but enhanced if one is loaded).
https://zencq.github.io/NomNom/
GNU General Public License v3.0
383 stars 33 forks source link

[Bug] NomNom crashes with object reference nott set to an instance of an object when i save my changes to my save file and i cant edit my account #125

Closed luhohagaming closed 10 months ago

luhohagaming commented 1 year ago

Description

NomNom crashes with object reference not set to an instance of an object when i save changes to my save and it doesnt lett me edit account

Reproduce

Steps to reproduce the behavior:

  1. open NomNom and edit your save
  2. give yourself 9999 liquid sun in your exosuit inv
  3. save

Expected Behavior

i expected it to save my changes normally and also allow me to editt my account

Files

file type not supported crash report file cannot be attached but here is what it says: "NomNom 4.00.0.32-beta.2 Crash Report

Environment

Operating System Microsoft Windows 10.0.19045

.NET .NET 6.0.16

Exception

Type System.NullReferenceException

Message Object reference not set to an instance of an object.

Stack Trace at libNOM.io.PlatformMicrosoft.WriteContainersIndex() at libNOM.io.PlatformMicrosoft.Write(Container container, DateTimeOffset writeTime) at libNOM.io.Platform.Write(Container container) at NomNom.Models.ContainerWrapper.Write() at NomNom.ViewModels.MainWindowViewModel.Save() at Prism.Commands.DelegateCommand.Execute() at Prism.Commands.DelegateCommand.Execute(Object parameter) at Prism.Commands.DelegateCommandBase.System.Windows.Input.ICommand.Execute(Object parameter) at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated) at System.Windows.Controls.MenuItem.InvokeClickAfterRender(Object arg) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)" NomNom.20230427.log

Additional Context

Add any other context about the problem here or at least complete the following information.