• Hello Guest! Did you know that ProjectKorra has an official Discord server? A lot of discussion about the official server, development process, and community discussion happens over there. Feel free to join now by clicking the link below.

    Join the Discord Server

Fixed Airbending Flight NPE causing server crash

Status
Not open for further replies.

Tristan

Verified Member
Ok i have one person in avatarstate, having all 5 elements. He does a fireblast and the server crashes leaving this error:

[ProjectKorra] Task #97 for ProjectKorra v1.6.0 BETA 15 generated an exception
java.lang.NullPointerException
at com.projectkorra.ProjectKorra.airbending.FlightAbility.remove(FlightAbility.java:92) ~[?:?]
at com.projectkorra.ProjectKorra.airbending.FlightAbility.remove(FlightAbility.java:97) ~[?:?]
at com.projectkorra.ProjectKorra.airbending.FlightAbility.progress(FlightAbility.java:31) ~[?:?]
at com.projectkorra.ProjectKorra.airbending.FlightAbility.progressAll(FlightAbility.java:83) ~[?:?]
at com.projectkorra.ProjectKorra.airbending.AirbendingManager.run(AirbendingManager.java:29) ~[?:?]
at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftTask.run(CraftTask.java:53) ~[spigot.jar:git-Bukkit-9ae3381]
at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:349) [spigot.jar:git-Bukkit-9ae3381]
at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:657) [spigot.jar:git-Bukkit-9ae3381]
at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:284) [spigot.jar:git-Bukkit-9ae3381]
at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:598) [spigot.jar:git-Bukkit-9ae3381]
at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:506) [spigot.jar:git-Bukkit-9ae3381]
at java.lang.Thread.run(Thread.java:745) [?:1.7.0_65]

On my server i can replicate it as often as i want to but i don't really see the connection between those two moves.

Hope this can be patched

Tristan
 

Finn_Bueno_

Staff member
Plugin Developer
Verified Member
Never say 5 elements again. Chi is NOT an element. I forgive you :p

By the way, it seems that Flight is causing the problem.
 

Loony

Verified Member
Hey,
You can disable Flight in the config.

Find it here:
Flight:
Enabled: false

If you're still getting the problem then I recommend changing the 'toggled' ability for avatar state fireblast.
Find it here:
FireJet:
Cooldown: 6000
Duration: 2000
Speed: 0.7
IsAvatarStateToggle: true

Good luck,
~Loony
 
Status
Not open for further replies.
Top