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

Add world null check #4700

Merged
merged 4 commits into from
Jul 23, 2022

Conversation

TPGamesNL
Copy link
Member

Description

Fixes EffTeleport throwing NPE when a world's location is null:
image

NPEs: https://pastebin.com/u48v5Fjt (Paper async), https://pastebin.com/gj8rqxsW (sync)


Target Minecraft Versions: any
Requirements: none
Related Issues: none

@TPGamesNL TPGamesNL added the bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. label Mar 25, 2022
@APickledWalrus
Copy link
Member

Do you think we should instead fallback to the entity's world if the location's world is null?

@TPGamesNL TPGamesNL marked this pull request as draft April 11, 2022 16:36
@APickledWalrus
Copy link
Member

@TPGamesNL I can handle this change if you would like 🙂

@TPGamesNL
Copy link
Member Author

Oh yea I forgot about this PR, feel free to do it otherwise I will tmrw

@TPGamesNL TPGamesNL marked this pull request as ready for review July 20, 2022 13:58
@TPGamesNL TPGamesNL requested a review from APickledWalrus July 20, 2022 13:58
@TheLimeGlass TheLimeGlass merged commit 2a1b52b into SkriptLang:master Jul 23, 2022
@TPGamesNL TPGamesNL deleted the fix/eff-teleport-world-npe branch July 23, 2022 09:27
@TheLimeGlass
Copy link
Contributor

@TPGamesNL did this have a related issue or did you or someone on Discord find the NPE?

@TPGamesNL
Copy link
Member Author

I don't remember, but probably no related issues otherwise I would've referred them

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An issue that needs to be fixed. Alternatively, a PR fixing an issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants