Studio60
Well-Known Member
- Joined
- Sep 3, 2014
- Messages
- 3,411
- Reaction score
- 19
When HB is not running it can happen that some object (probably the LocalPlayer) goes invalid so querying the ProfileHelperFunctionsBase() for a quest causes exceptions. I do have a Lua-based fallback ready, but I need to know how I can check before querying ProfileHelperFunctionsBase if the request would fail. I don't want to a try/catch logic to my code. Is "!StyxWoW.Me.IsValid" enough as a check or is the exception caused by some other object ?
PHP:
Styx.InvalidObjectPointerException: Cannot read a descriptor on an invalid object.
at Styx.WoWInternals.WoWObjects.WoWObject.***********[](UInt32 , Int32 )
at Styx.WoWInternals.QuestLog.ContainsQuest(UInt32 questId)