You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Server just crashes by it's components (pickups/ganzones) .
To Reproduce
Random. Idk.
Expected behavior
At first I thought the &IPlayer was nullptr, but then I saw queryExtension(player);
I check all queryExtensions and see that there is may be nullptr as a result.
If I was right some problems may be in gangzones, pickups, dialogs.
Activity
andreev02 commentedon Sep 17, 2023
There are alot of places. Check queryExtension

AmyrAhmady commentedon Sep 17, 2023
Checking if queried extension is null or not is fine
we are making sure retrieved pointer to our object is not invalid in order to do further actions.
I'd say the parts this check doesn't exist is more problematic, but not sure if that's the cause
thanks for reporting this
andreev02 commentedon Sep 17, 2023
data == nullptr continue?

AmyrAhmady commentedon Sep 17, 2023
Yes, I meant for other pictures you sent, and no, if data is null we are not continuing the execution
I understand the others
AmyrAhmady commentedon Sep 18, 2023
@andreev02 Please try this build and update me with the results
https://github.com/openmultiplayer/open.mp/actions/runs/6217146604
andreev02 commentedon Sep 18, 2023
Hi. Sorry I can't check it now. Already added checks in forked project. But I found more places to add checks just in case.
