Handle the case that extra is null

This commit is contained in:
Jakob K
2021-06-28 12:04:28 +02:00
parent 7b1487b563
commit fa2df9c40e

View File

@@ -129,7 +129,7 @@ class LiteralTextBuilder(val internalText: BaseComponent, ) {
this@LiteralTextBuilder.clickEvent?.let { clickEvent = it }
this@LiteralTextBuilder.hoverEvent?.let { hoverEvent = it }
if (siblingText.extra.isNotEmpty())
if (siblingText.extra?.isNotEmpty() == true)
addExtra(siblingText)
}
}