- make AssetKey log SEVERE on relative path outside root
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10172 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
		
							parent
							
								
									d169b700f2
								
							
						
					
					
						commit
						0b92166460
					
				| @ -36,6 +36,8 @@ import com.jme3.asset.cache.SimpleAssetCache; | ||||
| import com.jme3.export.*; | ||||
| import java.io.IOException; | ||||
| import java.util.LinkedList; | ||||
| import java.util.logging.Level; | ||||
| import java.util.logging.Logger; | ||||
| 
 | ||||
| /** | ||||
|  * <code>AssetKey</code> is a key that is used to | ||||
| @ -153,7 +155,7 @@ public class AssetKey<T> implements Savable, Cloneable { | ||||
|                 if (list.size() > 0) { | ||||
|                     list.removeLast(); | ||||
|                 } else { | ||||
|                     throw new IllegalStateException("Relative path is outside assetmanager root!"); | ||||
|                     Logger.getLogger(AssetKey.class.getName()).log(Level.SEVERE, "Asset path is outside assetmanager root"); | ||||
|                 } | ||||
|             } else { | ||||
|                 list.add(string); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user