From e8ca5fe8ff04cb4c05d987eb6c2bce777b0f067b Mon Sep 17 00:00:00 2001 From: Nehon Date: Sun, 16 Nov 2014 19:03:45 +0100 Subject: [PATCH] fixed Issue in MeshLoader introduce in a previous commit --- .../src/ogre/java/com/jme3/scene/plugins/ogre/MeshLoader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 6c2615823..9eff9b95c 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 @@ -430,7 +430,7 @@ public class MeshLoader extends DefaultHandler implements AssetLoader { int texCoords = parseInt(attribs.getValue("texture_coords"), 0); for (int i = 0; i < texCoords; i++) { String dimsStr = attribs.getValue("texture_coord_dimensions_" + i); - if (dimsStr.startsWith("float")) { + if (dimsStr != null && dimsStr.startsWith("float")) { dimsStr = dimsStr.substring("float".length()); } int dims = parseInt(dimsStr, 2);