Skip to content

获得地狱火炬(Hellfire Torch)后读取任务物品栏抛空指针异常 #2

@hayesyang

Description

@hayesyang

D2REditor版本v0.9。
在红门打完3魔神拾取了地狱火炬和英雄旗帜,退出游戏后打开编辑器读取人物正常,但点击物品栏后抛以下异常:

************** 异常文本 **************
System.NullReferenceException: 未将对象引用设置到对象的实例。
在 D2SLib.Model.Save.Item.get_Icon() 位置 C:\Users\Administrator\source\repos\D2REditor\D2SLib\Model\Save\Items.cs:行号 752
在 D2REditor.Controls.ItemsControl.OnPaint(PaintEventArgs e) 位置 C:\Users\Administrator\source\repos\D2REditor\D2REditor\Controls\ItemsControl.cs:行号 894
在 System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
在 System.Windows.Forms.Control.WmPaint(Message& m)
在 System.Windows.Forms.Control.WndProc(Message& m)
在 System.Windows.Forms.ScrollableControl.WndProc(Message& m)
在 System.Windows.Forms.ContainerControl.WndProc(Message& m)
在 System.Windows.Forms.UserControl.WndProc(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

另外,对于没有地狱火炬的任务存档,如果通过编辑器导入该道具,进入游戏时会出错崩溃。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions