diff --git a/jme3-plugins/src/ogre/java/com/jme3/scene/plugins/ogre/MeshLoader.java b/jme3-plugins/src/ogre/java/com/jme3/scene/plugins/ogre/MeshLoader.java index 9eff9b95c..42780f411 100644 --- a/jme3-plugins/src/ogre/java/com/jme3/scene/plugins/ogre/MeshLoader.java +++ b/jme3-plugins/src/ogre/java/com/jme3/scene/plugins/ogre/MeshLoader.java @@ -212,7 +212,10 @@ public class MeshLoader extends DefaultHandler implements AssetLoader { private void applyMaterial(Geometry geom, String matName) { Material mat = null; - if (matName.endsWith(".j3m")) { + if (matName == null) { + // no material specified. use placeholder. + mat = null; + } else if (matName.endsWith(".j3m")) { // load as native jme3 material instance try { mat = assetManager.loadMaterial(matName);