Skip to content

Commit

Permalink
SpigotMC#2878: Null check hover event before transform
Browse files Browse the repository at this point in the history
  • Loading branch information
Mystiflow authored Jul 1, 2020
1 parent a64c34d commit 2e4b08e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public BaseComponent[] legacyHoverTransform(ProxiedPlayer player, BaseComponent.
for ( int i = 0; i < components.length; i++ )
{
BaseComponent next = components[i];
if ( next.getHoverEvent().isLegacy() )
if ( next.getHoverEvent() == null || next.getHoverEvent().isLegacy() )
{
continue;
}
Expand Down

0 comments on commit 2e4b08e

Please sign in to comment.