mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- Prevent a possible NPE in TextRenderer#updatePieces (mobile Forge)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user