diff --git a/jme3-core/src/main/java/com/jme3/material/Material.java b/jme3-core/src/main/java/com/jme3/material/Material.java index f5302088a..b8d002932 100644 --- a/jme3-core/src/main/java/com/jme3/material/Material.java +++ b/jme3-core/src/main/java/com/jme3/material/Material.java @@ -994,8 +994,8 @@ public class Material implements CloneableSmartAsset, Cloneable, Savable { @Override public String toString() { return "Material[name=" + name + - ", def=" + def.getName() + - ", tech=" + technique.getDef().getName() + + ", def=" + (def != null ? def.getName() : null) + + ", tech=" + (technique != null && technique.getDef() != null ? technique.getDef().getName() : null) + "]"; }