Browse Source

SDK:
- fix Model Importer AssetKey check


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10180 75d07b2b-3a1a-0410-a2c5-0572b91ccdca

nor..67 12 years ago
parent
commit
3eb96dbe45

+ 1 - 1
jme3-model-importer/src/com/jme3/gde/modelimporter/ImportModel.java

@@ -143,8 +143,8 @@ public final class ImportModel implements ActionListener {
                 if (fileObj != null) {
                     DataObject obj = DataObject.find(fileObj);
                     AssetData data = obj.getLookup().lookup(AssetData.class);
-                    AssetKey assetKey = data.getAssetKey();
                     if (data != null) {
+                        AssetKey assetKey = data.getAssetKey();
                         if (obj instanceof SpatialAssetDataObject) {
                             // Delete models that are not J3O.
                             if (!(obj instanceof BinaryModelDataObject)) {