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

Potion without base potion type causes a null pointer stack trace #6756

Closed
1 task done
Fusezion opened this issue Jun 2, 2024 · 0 comments
Closed
1 task done

Potion without base potion type causes a null pointer stack trace #6756

Fusezion opened this issue Jun 2, 2024 · 0 comments
Assignees
Labels
bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. completed The issue has been fully resolved and the change will be in the next Skript update.

Comments

@Fusezion
Copy link
Contributor

Fusezion commented Jun 2, 2024

Skript/Server Version

[18:48:20 INFO]: [Skript] Skript's aliases can be found here: https://github.com/SkriptLang/skript-aliases
[18:48:20 INFO]: [Skript] Skript's documentation can be found here: https://docs.skriptlang.org/
[18:48:20 INFO]: [Skript] Skript's tutorials can be found here: https://docs.skriptlang.org/tutorials
[18:48:20 INFO]: [Skript] Server Version: 1.20.6-130-5d8e53d (MC: 1.20.6)
[18:48:20 INFO]: [Skript] Skript Version: 2.8.5 (selfbuilt-unknown)
[18:48:20 INFO]: [Skript] Installed Skript Addons:
[18:48:20 INFO]: [Skript]  - skript-gui v1.3 (https://github.com/APickledWalrus/skript-gui)
[18:48:20 INFO]: [Skript]  - skript-reflect v2.4-dev2 (https://github.com/SkriptLang/skript-reflect)
[18:48:20 INFO]: [Skript]  - SkBee v3.6.0-beta (https://github.com/ShaneBeee/SkBee)
[18:48:20 INFO]: [Skript] Installed dependencies: None

Bug Description

When obtaining potion effects of a potion without any base potion data skript will throw a null point exception

Expected Behavior

Skript to not error and instead just return nothing

Steps to Reproduce

on load:
    set {_potion} to plain potion of mundane # removes the potion contents nbt
    broadcast potion effects of {_potion}

Errors or Screenshots

https://gist.github.com/Fusezion/2db321830680f675ba5df5439df4f20b

Other

No response

Agreement

  • I have read the guidelines above and affirm I am following them with this report.
@APickledWalrus APickledWalrus self-assigned this Jun 3, 2024
@APickledWalrus APickledWalrus added the bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. label Jun 3, 2024
@APickledWalrus APickledWalrus added PR available Issues which have a yet-to-be merged PR resolving it completed The issue has been fully resolved and the change will be in the next Skript update. and removed PR available Issues which have a yet-to-be merged PR resolving it labels Jun 3, 2024
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. completed The issue has been fully resolved and the change will be in the next Skript update.
Projects
None yet
Development

No branches or pull requests

2 participants