Skip to content
This repository was archived by the owner on Aug 13, 2021. It is now read-only.
This repository was archived by the owner on Aug 13, 2021. It is now read-only.

NullReferenceException #10

@dwasss

Description

@dwasss

If I open a chest and hit Sort, I see a Stack Trace in the console. The game doesn't crash and the sorting works fine...

Logs are below. This is on 1.3.0.

[Info   : Unity Log] 03/07/2021 20:20:53: Player 965717360 wants to open piece_chest_wood(Clone)   im: 965717360

[Info   : Unity Log] 03/07/2021 20:20:53: Setting selected recipe 0

[Info   :Inventory Sort] Player opened container of height 2, was 0, rebuilding sort button.
[Info   : Unity Log] 03/07/2021 20:20:53: UI Group status changed root = True

[Info   : Unity Log] 03/07/2021 20:20:53: UI Group status changed Player = True

[Info   : Unity Log] 03/07/2021 20:20:55: Setting selected recipe 0

[Info   : Unity Log] 03/07/2021 20:21:01: Setting selected recipe 0

[Info   : Unity Log] 03/07/2021 20:21:01: UI Group status changed root = True

[Info   : Unity Log] 03/07/2021 20:21:01: UI Group status changed Player = True

[Info   : Unity Log] 03/07/2021 20:21:08: Player 965717360 wants to open piece_chest_wood(Clone)   im: 965717360

[Info   : Unity Log] 03/07/2021 20:21:08: Setting selected recipe 0

[Info   :Inventory Sort] Player opened container of height 2, was 0, rebuilding sort button.
[Info   : Unity Log] 03/07/2021 20:21:08: UI Group status changed root = True

[Info   : Unity Log] 03/07/2021 20:21:08: UI Group status changed Player = True

[Info   : Unity Log] 03/07/2021 20:21:12: Setting selected recipe 0

[Debug  :Inventory Sort] Found EquipmentAndQuickSlots plugin
[Debug  :Inventory Sort] Found EquipmentAndQuickSlots plugin
[Debug  :Inventory Sort] Found EquipmentAndQuickSlots plugin
[Debug  :Inventory Sort] Found EquipmentAndQuickSlots plugin
[Debug  :Inventory Sort] Found EquipmentAndQuickSlots plugin
[Debug  :Inventory Sort] Found EquipmentAndQuickSlots plugin
[Debug  :Inventory Sort] Found EquipmentAndQuickSlots plugin
[Debug  :Inventory Sort] Found EquipmentAndQuickSlots plugin
[Info   :Inventory Sort] There are 0 groups of stackable items
[Debug  :Inventory Sort] Found EquipmentAndQuickSlots plugin
[Debug  :Inventory Sort] Found EquipmentAndQuickSlots plugin
[Debug  :Inventory Sort] Found EquipmentAndQuickSlots plugin
[Debug  :Inventory Sort] Found EquipmentAndQuickSlots plugin
[Debug  :Inventory Sort] Found EquipmentAndQuickSlots plugin
[Debug  :Inventory Sort] Found EquipmentAndQuickSlots plugin
[Debug  :Inventory Sort] Found EquipmentAndQuickSlots plugin
[Debug  :Inventory Sort] Found EquipmentAndQuickSlots plugin
[Debug  :Inventory Sort] Found EquipmentAndQuickSlots plugin
[Debug  :Inventory Sort] Found EquipmentAndQuickSlots plugin
[Debug  :Inventory Sort] Found EquipmentAndQuickSlots plugin
[Debug  :Inventory Sort] Found EquipmentAndQuickSlots plugin
[Debug  :Inventory Sort] Found EquipmentAndQuickSlots plugin
[Debug  :Inventory Sort] Found EquipmentAndQuickSlots plugin
[Debug  :Inventory Sort] Found EquipmentAndQuickSlots plugin
[Debug  :Inventory Sort] Found EquipmentAndQuickSlots plugin
[Debug  :Inventory Sort] Sorting inventory took 00:00:00.0238914
[Error  : Unity Log] NullReferenceException: Object reference not set to an instance of an object
Stack trace:
InventorySort.InventoryUtils.Sort (Inventory inventory, System.Int32 offset, System.Boolean autoStack) (at <90f15e5f6079462984434c54fabfab70>:0)
InventorySort.Plugin.SortContainer () (at <90f15e5f6079462984434c54fabfab70>:0)
UnityEngine.Events.InvokableCall.Invoke () (at <f15e66ec8bac455da00fc30eb5e18d09>:0)
UnityEngine.Events.UnityEvent.Invoke () (at <f15e66ec8bac455da00fc30eb5e18d09>:0)
UnityEngine.UI.Button.Press () (at <295d1b1de8df4448a09b32b57aa190e4>:0)
UnityEngine.UI.Button.OnPointerClick (UnityEngine.EventSystems.PointerEventData eventData) (at <295d1b1de8df4448a09b32b57aa190e4>:0)
UnityEngine.EventSystems.ExecuteEvents.Execute (UnityEngine.EventSystems.IPointerClickHandler handler, UnityEngine.EventSystems.BaseEventData eventData) (at <295d1b1de8df4448a09b32b57aa190e4>:0)
UnityEngine.EventSystems.ExecuteEvents.Execute[T] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction`1[T1] functor) (at <295d1b1de8df4448a09b32b57aa190e4>:0)
UnityEngine.EventSystems.EventSystem:Update()

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