[SPIGOT-6726] NPE when calling getBossBar() on plugin spawned EnderDragon Created: 28/Aug/21 Updated: 28/Aug/21 Resolved: 28/Aug/21 |
|
Status: | Resolved |
Project: | Spigot |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | New Feature | Priority: | Minor |
Reporter: | Brokkonaut | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | None |
Version: | 1.17.1 |
Guidelines Read: | Yes |
Description |
Some EnderDragons may not have a dragonFight, so they do not have a bossbar.
Caused by: java.lang.NullPointerException: Cannot read field "k" because "this.handle" is null
PR: https://hub.spigotmc.org/stash/projects/SPIGOT/repos/craftbukkit/pull-requests/925/overview |