diff --git a/jme3-blender/src/main/java/com/jme3/scene/plugins/blender/meshes/TemporalMesh.java b/jme3-blender/src/main/java/com/jme3/scene/plugins/blender/meshes/TemporalMesh.java index f65d38ed5..05d3dcb11 100644 --- a/jme3-blender/src/main/java/com/jme3/scene/plugins/blender/meshes/TemporalMesh.java +++ b/jme3-blender/src/main/java/com/jme3/scene/plugins/blender/meshes/TemporalMesh.java @@ -194,7 +194,10 @@ public class TemporalMesh extends Geometry { */ public List getAdjacentFaces(Edge edge) { List result = new ArrayList(indexToFaceMapping.get(edge.getFirstIndex())); - result.retainAll(indexToFaceMapping.get(edge.getSecondIndex())); + List secondIndexAdjacentFaces = indexToFaceMapping.get(edge.getSecondIndex()); + if(secondIndexAdjacentFaces != null) { + result.retainAll(indexToFaceMapping.get(edge.getSecondIndex())); + } return result; }