- Prevent a possible NPE in TextRenderer#updatePieces (mobile Forge)

This commit is contained in:
Agetian
2016-12-27 06:54:45 +00:00
parent c34db9cf2d
commit 8024b4567a

View File

@@ -89,7 +89,7 @@ public class TextRenderer {
lineWidths.clear();
font = font0;
needClip = false;
if (fullText.isEmpty()) { return; }
if (fullText == null || fullText.isEmpty()) { return; }
totalHeight = font.getCapHeight();
if (totalHeight > height) {