Skip to content

LockedOption shortcut may cause Null Reference Exception #252

Description

@MineGame223

I'm not very sure if it really is Baselib's bug, may need a check. But my original locked option function is working properly
here is the partly log:
[ERROR] System.NullReferenceException: Object reference not set to an instance of an object.
at MegaCrit.Sts2.Core.Models.CharacterModel.AddDetailsTo(LocString str)
at MegaCrit.Sts2.Core.Events.EventOption.AddLocVars(EventModel eventModel)
at MegaCrit.Sts2.Core.Events.EventOption..ctor(EventModel eventModel, Func1 onChosen, String textKey, IEnumerable1 hoverTips)
at MegaCrit.Sts2.Core.Events.EventOption..ctor(EventModel eventModel, Func`1 onChosen, String textKey, IHoverTip[] hoverTips)
at BaseLib.Abstracts.CustomEventModel.LockedOption(String locKey, String pageKey, IHoverTip[] tips)
at RanInSpire.scripts.events.LuthiersShopEvent.GenerateInitialOptions() // my mod

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