mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +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();
|
lineWidths.clear();
|
||||||
font = font0;
|
font = font0;
|
||||||
needClip = false;
|
needClip = false;
|
||||||
if (fullText.isEmpty()) { return; }
|
if (fullText == null || fullText.isEmpty()) { return; }
|
||||||
|
|
||||||
totalHeight = font.getCapHeight();
|
totalHeight = font.getCapHeight();
|
||||||
if (totalHeight > height) {
|
if (totalHeight > height) {
|
||||||
|
|||||||
Reference in New Issue
Block a user