#2878: Null check hover event before transform

This commit is contained in:
Mystiflow 2020-07-01 22:29:10 +01:00 committed by GitHub
parent a64c34d29e
commit 2e4b08e5ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,7 +41,7 @@ public final class ChatComponentTransformer
for ( int i = 0; i < components.length; i++ )
{
BaseComponent next = components[i];
if ( next.getHoverEvent().isLegacy() )
if ( next.getHoverEvent() == null || next.getHoverEvent().isLegacy() )
{
continue;
}