Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix MobSpawnESP NPE #470

Merged
merged 2 commits into from Oct 8, 2021
Merged

Conversation

thyraxx
Copy link
Contributor

@thyraxx thyraxx commented Sep 21, 2021

Description

Related issue and possible duplicates?: #467 #442 #432 #233
After rigorously testing it seems that sometimes inside a stream map the variable is null, added null check.

Kept placing blocks mid air and destroying them in creative mode tons of times in quick succession, eventually game crashed with the exact same log from the related issue.

Copy link

@InfinitePower563 InfinitePower563 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Simple fix to a crash

@thyraxx
Copy link
Contributor Author

thyraxx commented Sep 21, 2021

After looking around further it looks like the array is cleared. It looks like an array.clear is called while the stream is busy, which results in an empty array, hence it becomes null.

We could keep it like this with null check in the stream and it should work fine, I could also change it so the array won't be cleared if it's still busy and remove the null check, or add it on top of the null check. Not sure what the right course of action would be here.

@sudofox
Copy link
Contributor

sudofox commented Sep 30, 2021

Thanks for looking into this -- hopefully it gets noticed, since being able to use MobSpawnESP without worrying about it crashing would make my life 10x easier.

Alexander01998 added a commit that referenced this pull request Oct 8, 2021
@Alexander01998 Alexander01998 merged commit 49aa35e into Wurst-Imperium:master Oct 8, 2021
@Alexander01998 Alexander01998 added type:bugfix This can be released as a patch. category:render status:merged This pull request has been merged, even if GitHub says otherwise. labels Oct 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:render status:merged This pull request has been merged, even if GitHub says otherwise. type:bugfix This can be released as a patch.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants