- 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
This commit is contained in:
parent
7927ad4bbf
commit
28ad6d72eb
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user