aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/anthonyhilyard/iceberg/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/anthonyhilyard/iceberg/util')
-rw-r--r--src/main/java/com/anthonyhilyard/iceberg/util/Tooltips.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/anthonyhilyard/iceberg/util/Tooltips.java b/src/main/java/com/anthonyhilyard/iceberg/util/Tooltips.java
index bc5f081..d111ae5 100644
--- a/src/main/java/com/anthonyhilyard/iceberg/util/Tooltips.java
+++ b/src/main/java/com/anthonyhilyard/iceberg/util/Tooltips.java
@@ -234,7 +234,7 @@ public class Tooltips
int screenWidth, int screenHeight, int maxTextWidth, FontRenderer font)
{
Rectangle2d rect = new Rectangle2d(0, 0, 0, 0);
- if (textLines.isEmpty())
+ if (textLines == null || textLines.isEmpty() || stack == null)
{
return rect;
}