Skip to content

[Bug] Call error from SubworldLibrary when used by Starlight River #821

@BRR456

Description

@BRR456

Bug: Starlight River v0.2.9.2 throws a NullReferenceException when calling SubworldLibrary.Call() during early runtime.
Reproduce: Enable only SubworldLibrary v2.2.3.2 and Starlight River. Create a new world.
Result: [SubworldLibrary]: Call error: Object reference not set to an instance of an object, repeats every frame.
Expected: Mod should check if SubworldManager is initialized before calling.
Suggested Fix: Wrap Call() with a null check or use ModLoader.TryGetMod()

client.log

Error begins at line 1172

[20:29:00.018] [Main Thread/WARN] [tML]: Silently Caught Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
at SubworldLibrary.SubworldLibrary.Call(Object[] args) in SubworldLibrary.cs:line 1004
at StarlightRiver.Core.Systems.CutawaySystem.CutawayHook.get_InSubworld() in StarlightRiver\Core\Systems\CutawaySystem\CutawayHook.cs:line 22

Metadata

Metadata

Assignees

No one assigned

    Labels

    NewNeeds tagged/assaigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions