aboutsummaryrefslogtreecommitdiff
path: root/mod/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'mod/src/main/java')
-rw-r--r--mod/src/main/java/kr/syeyoung/dungeonsguide/mod/guiv2/DomElement.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/guiv2/DomElement.java b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/guiv2/DomElement.java
index b3e4b0cf..d49589e3 100644
--- a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/guiv2/DomElement.java
+++ b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/guiv2/DomElement.java
@@ -101,7 +101,7 @@ public class DomElement {
// event propagation
public void requestRelayout() {
- if (layouter.canCutRequest()) {
+ if (layouter.canCutRequest() && size != null) {
layouter.layout(this, new ConstraintBox(
size.getWidth(), size.getWidth(), size.getHeight(), size.getHeight()
));