ryerrabelli / jmonkeyengine

Automatically exported from code.google.com/p/jmonkeyengine
0 stars 0 forks source link

NullPointerException when loading .blend models #399

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use the "Import Model" option to load a .blend file

What is the expected output? What do you see instead?
The following exception is raised:
java.lang.NullPointerException
    at com.jme3.gde.modelimporter.ModelImporterVisualPanel1.assetRequested(ModelImporterVisualPanel1.java:150)
    at com.jme3.asset.DesktopAssetManager.loadAsset(DesktopAssetManager.java:203)
[catch] at 
com.jme3.gde.modelimporter.ModelImporterVisualPanel1.loadModel(ModelImporterVisu
alPanel1.java:109)
    at com.jme3.gde.modelimporter.ModelImporterVisualPanel1.loadModel(ModelImporterVisualPanel1.java:77)
    at com.jme3.gde.modelimporter.ModelImporterVisualPanel1$8.run(ModelImporterVisualPanel1.java:323)
    at java.lang.Thread.run(Thread.java:722)

Original issue reported on code.google.com by ShadowIs...@gmail.com on 4 Sep 2011 at 9:32

GoogleCodeExporter commented 8 years ago
Obviously the engine calls an assetRequested callback with a null AssetKey 
which makes no sense at all:

    public void assetRequested(AssetKey ak) {
        if (!"j3md".equalsIgnoreCase(ak.getExtension()) //line 150
                && !"glsllib".equalsIgnoreCase(ak.getExtension())
                && !"frag".equalsIgnoreCase(ak.getExtension())
                && !"vert".equalsIgnoreCase(ak.getExtension())) {
            requestedAssets.add(ak);
        }
    }

Original comment by normen667 on 4 Sep 2011 at 9:47

GoogleCodeExporter commented 8 years ago

Original comment by normen667 on 11 Oct 2011 at 4:05