fix(#4074): check nulls in Interpreter#toString()
@@ -91,6 +91,11 @@ public String toString() {
if (actor.hasComponent(DisplayNameComponent.class)) {
return actor.getComponent(DisplayNameComponent.class).name;
}
+
+ if (actor.getEntity() == null || actor.getEntity().getParentPrefab() == null) {
+ return "no entity";
+ }
+
return "unnamed " + actor.getEntity().getParentPrefab().getName();
}
