فهرست منبع

- make UrlLocator not print warning when asset can not be found (FileNotFoundException)

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8724 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
nor..67 14 سال پیش
والد
کامیت
28ad6d72eb
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  1. 3 0
      engine/src/desktop/com/jme3/asset/plugins/UrlLocator.java

+ 3 - 0
engine/src/desktop/com/jme3/asset/plugins/UrlLocator.java

@@ -33,6 +33,7 @@
 package com.jme3.asset.plugins;
 
 import com.jme3.asset.*;
+import java.io.FileNotFoundException;
 import java.io.IOException;
 import java.net.MalformedURLException;
 import java.net.URL;
@@ -68,6 +69,8 @@ public class UrlLocator implements AssetLocator {
             }
             URL url = new URL(root.toExternalForm() + name);
             return UrlAssetInfo.create(manager, key, url);
+        }catch (FileNotFoundException e){
+            return null;
         }catch (IOException ex){
             logger.log(Level.WARNING, "Error while locating " + name, ex);
             return null;