diff --git a/engine/src/core/com/jme3/asset/AssetKey.java b/engine/src/core/com/jme3/asset/AssetKey.java index 66bd3ffd0..a266bd74c 100644 --- a/engine/src/core/com/jme3/asset/AssetKey.java +++ b/engine/src/core/com/jme3/asset/AssetKey.java @@ -152,9 +152,10 @@ public class AssetKey implements Savable, Cloneable { if (string.length() == 0 || string.equals(".")) { //do nothing } else if (string.equals("..")) { - if (list.size() > 0) { + if (list.size() > 0 && !list.getLast().equals("..")) { list.removeLast(); } else { + list.add(".."); Logger.getLogger(AssetKey.class.getName()).log(Level.SEVERE, "Asset path is outside assetmanager root"); } } else {