diff --git a/jme3-core/src/main/java/com/jme3/scene/Mesh.java b/jme3-core/src/main/java/com/jme3/scene/Mesh.java index 1e3195e00..326a6acc7 100644 --- a/jme3-core/src/main/java/com/jme3/scene/Mesh.java +++ b/jme3-core/src/main/java/com/jme3/scene/Mesh.java @@ -1527,7 +1527,11 @@ public class Mesh implements Savable, Cloneable, JmeCloneable { } public MorphTarget[] getMorphTargets() { - return morphTargets.getArray(); + if (morphTargets == null) { + return new MorphTarget[0]; + } else { + return morphTargets.getArray(); + } } /**