Deweh / CyberCAT-SimpleGUI

A simplified offshoot of SirBitesalot's CyberCAT.
MIT License
233 stars 45 forks source link

Crash when adding new node to weapon mods list #95

Open jgentil opened 2 years ago

jgentil commented 2 years ago

When trying to add a new weapon mod entry, i get this crash:

image

Reproduction steps:

  1. Double-click to edit any weapon. The weapon I chose was a vendor-bought Defender, legendary quality, nothing special. It was equipped in weapon2
  2. Switch to Mods/Special tab
  3. Click the root node. Mine for this was AttachmentSlots::Receiver
  4. Click + New Node
  5. Receive error dialog.
Click here to show traceback ``` See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.NullReferenceException: Object reference not set to an instance of an object. at CP2077SaveEditor.ItemDetails.IterativeBuildModTree(ItemModData nodeData, TreeNode rootNode) at CP2077SaveEditor.ItemDetails.ReloadData() at CP2077SaveEditor.ItemDetails.newModNodeButton_Click(Object sender, EventArgs e) at System.Windows.Forms.Control.OnClick(EventArgs e) at CP2077SaveEditor.ModernButton.TextMouseUp(Object sender, EventArgs e) at System.Windows.Forms.Control.OnMouseUp(MouseEventArgs e) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.Label.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, WM msg, IntPtr wparam, IntPtr lparam) ************** Loaded Assemblies ************** System.Private.CoreLib Assembly Version: 6.0.0.0 Win32 Version: n/a CodeBase: ---------------------------------------- CP2077SaveEditor Assembly Version: 1.0.0.0 Win32 Version: n/a CodeBase: ---------------------------------------- System.Runtime Assembly Version: 6.0.0.0 Win32 Version: n/a CodeBase: ---------------------------------------- System.Windows.Forms Assembly Version: 6.0.1.0 Win32 Version: n/a CodeBase: ---------------------------------------- System.ComponentModel.Primitives Assembly Version: 6.0.0.0 Win32 Version: n/a CodeBase: ---------------------------------------- System.Windows.Forms.Primitives Assembly Version: 6.0.1.0 Win32 Version: n/a CodeBase: ---------------------------------------- System.Runtime.InteropServices Assembly Version: 6.0.0.0 Win32 Version: n/a CodeBase: ---------------------------------------- System.Drawing.Primitives Assembly Version: 6.0.0.0 Win32 Version: n/a CodeBase: ---------------------------------------- System.Collections.Specialized Assembly Version: 6.0.0.0 Win32 Version: n/a CodeBase: ---------------------------------------- System.Threading Assembly Version: 6.0.0.0 Win32 Version: n/a CodeBase: ---------------------------------------- System.Diagnostics.TraceSource Assembly Version: 6.0.0.0 Win32 Version: n/a CodeBase: ---------------------------------------- System.Collections Assembly Version: 6.0.0.0 Win32 Version: n/a CodeBase: ---------------------------------------- System.ComponentModel.EventBasedAsync Assembly Version: 6.0.0.0 Win32 Version: n/a CodeBase: ---------------------------------------- System.Drawing.Common Assembly Version: 6.0.0.0 Win32 Version: n/a CodeBase: ---------------------------------------- WolvenKit.RED4.Types Assembly Version: 0.1.0.0 Win32 Version: n/a CodeBase: ---------------------------------------- System.Text.RegularExpressions Assembly Version: 6.0.0.0 Win32 Version: n/a CodeBase: ---------------------------------------- Newtonsoft.Json Assembly Version: 12.0.0.0 Win32 Version: n/a CodeBase: ---------------------------------------- netstandard Assembly Version: 2.1.0.0 Win32 Version: n/a CodeBase: ---------------------------------------- WolvenKit.Common Assembly Version: 2.4.0.0 Win32 Version: n/a CodeBase: ---------------------------------------- WolvenKit.Core Assembly Version: 1.3.0.0 Win32 Version: n/a CodeBase: ---------------------------------------- Microsoft.Win32.Primitives Assembly Version: 6.0.0.0 Win32 Version: n/a CodeBase: ---------------------------------------- System.Threading.Thread Assembly Version: 6.0.0.0 Win32 Version: n/a CodeBase: ---------------------------------------- Accessibility Assembly Version: 4.0.0.0 Win32 Version: n/a CodeBase: ---------------------------------------- System.ComponentModel.TypeConverter Assembly Version: 6.0.0.0 Win32 Version: n/a CodeBase: ---------------------------------------- System.Numerics.Vectors Assembly Version: 6.0.0.0 Win32 Version: n/a CodeBase: ---------------------------------------- Microsoft.Win32.SystemEvents Assembly Version: 6.0.0.0 Win32 Version: n/a CodeBase: ---------------------------------------- System.Runtime.Loader Assembly Version: 6.0.0.0 Win32 Version: n/a CodeBase: ---------------------------------------- System.Memory Assembly Version: 6.0.0.0 Win32 Version: n/a CodeBase: ---------------------------------------- System.ComponentModel Assembly Version: 6.0.0.0 Win32 Version: n/a CodeBase: ---------------------------------------- System.Resources.Extensions Assembly Version: 6.0.0.0 Win32 Version: n/a CodeBase: ---------------------------------------- System.ObjectModel Assembly Version: 6.0.0.0 Win32 Version: n/a CodeBase: ---------------------------------------- System.Linq Assembly Version: 6.0.0.0 Win32 Version: n/a CodeBase: ---------------------------------------- System.Drawing Assembly Version: 6.0.1.0 Win32 Version: n/a CodeBase: ---------------------------------------- System.Runtime.Serialization.Formatters Assembly Version: 6.0.0.0 Win32 Version: n/a CodeBase: ---------------------------------------- System.Collections.Concurrent Assembly Version: 6.0.0.0 Win32 Version: n/a CodeBase: ---------------------------------------- System.Linq.Expressions Assembly Version: 6.0.0.0 Win32 Version: n/a CodeBase: ---------------------------------------- System.Runtime.Numerics Assembly Version: 6.0.0.0 Win32 Version: n/a CodeBase: ---------------------------------------- System.Private.Uri Assembly Version: 6.0.0.0 Win32 Version: n/a CodeBase: ---------------------------------------- System.Runtime.Serialization.Primitives Assembly Version: 6.0.0.0 Win32 Version: n/a CodeBase: ---------------------------------------- System.Data.Common Assembly Version: 6.0.0.0 Win32 Version: n/a CodeBase: ---------------------------------------- System.Xml.ReaderWriter Assembly Version: 6.0.0.0 Win32 Version: n/a CodeBase: ---------------------------------------- System.Private.Xml Assembly Version: 6.0.0.0 Win32 Version: n/a CodeBase: ---------------------------------------- System.Reflection.Emit.ILGeneration Assembly Version: 6.0.0.0 Win32 Version: n/a CodeBase: ---------------------------------------- System.Reflection.Emit.Lightweight Assembly Version: 6.0.0.0 Win32 Version: n/a CodeBase: ---------------------------------------- System.Reflection.Primitives Assembly Version: 6.0.0.0 Win32 Version: n/a CodeBase: ---------------------------------------- Anonymously Hosted DynamicMethods Assembly Assembly Version: 0.0.0.0 Win32 Version: n/a CodeBase: file:///C:/Downloads/Save%20Editor%20(Project%20CyberCAT-SimpleGUI)%20v0.22a%20(AIO)-718-v0-22a-1652117834/System.Private.CoreLib.dll ---------------------------------------- WolvenKit.RED4.Save Assembly Version: 1.0.0.0 Win32 Version: n/a CodeBase: ---------------------------------------- System.Collections.NonGeneric Assembly Version: 6.0.0.0 Win32 Version: n/a CodeBase: ---------------------------------------- System.Runtime.CompilerServices.Unsafe Assembly Version: 6.0.0.0 Win32 Version: n/a CodeBase: ---------------------------------------- WolvenKit.RED4.TweakDB Assembly Version: 0.1.0.0 Win32 Version: n/a CodeBase: ---------------------------------------- System.Security.Cryptography.Primitives Assembly Version: 6.0.0.0 Win32 Version: n/a CodeBase: ---------------------------------------- System.Runtime.InteropServices.RuntimeInformation Assembly Version: 6.0.0.0 Win32 Version: n/a CodeBase: ---------------------------------------- System.Threading.ThreadPool Assembly Version: 6.0.0.0 Win32 Version: n/a CodeBase: ---------------------------------------- K4os.Compression.LZ4 Assembly Version: 1.2.16.0 Win32 Version: n/a CodeBase: ---------------------------------------- System.Collections.Immutable Assembly Version: 6.0.0.0 Win32 Version: n/a CodeBase: ---------------------------------------- WolvenKit.RED4.Archive Assembly Version: 0.1.0.0 Win32 Version: n/a CodeBase: ---------------------------------------- Splat Assembly Version: 14.1.0.0 Win32 Version: n/a CodeBase: ---------------------------------------- System.Diagnostics.StackTrace Assembly Version: 6.0.0.0 Win32 Version: n/a CodeBase: ---------------------------------------- System.Reflection.Metadata Assembly Version: 6.0.0.0 Win32 Version: n/a CodeBase: ---------------------------------------- ************** JIT Debugging ************** ```