elian1203 / ezAuctions

A simple, text-based auction plugin based on the Spigot Minecraft server software
https://www.spigotmc.org/resources/ezauctions.42574/
GNU General Public License v3.0
4 stars 4 forks source link

getCurrentAuction can be null #9

Closed HSGamer closed 3 years ago

HSGamer commented 3 years ago

Line: https://github.com/elian1203/ezAuctions/blob/4c20c59e0583c40c91618d4bbd5c59f65e4dbb5c/src/main/java/net/urbanmc/ezauctions/listener/WorldChangeListener.java#L34 This will cause NPE if the player switches worlds when there is no auction.

elian1203 commented 3 years ago

Good catch. Fixing.

On Sat, Jun 19, 2021 at 11:10 AM Huynh Tien @.***> wrote:

Line: https://github.com/elian1203/ezAuctions/blob/4c20c59e0583c40c91618d4bbd5c59f65e4dbb5c/src/main/java/net/urbanmc/ezauctions/listener/WorldChangeListener.java#L34 This will cause NPE if the player switches worlds when there is no auction.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/elian1203/ezAuctions/issues/9, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD2LWBIL56KOEHEGY2N35M3TTSXMXANCNFSM467ERBAQ .