- fix Model Importer AssetKey check


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10180 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
nor..67 2013-01-26 14:32:20 +00:00
parent 2a77175db8
commit 458c623f57

View File

@ -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)) {