Skip to content
Snippets Groups Projects
Commit 0c50d3d7 authored by srosse's avatar srosse
Browse files

OO-1069: fix issue with exists method of NamedContainer if the delegate is lazy initialized

parent 48ee6c94
No related branches found
No related tags found
No related merge requests found
...@@ -55,7 +55,8 @@ public class NamedContainerImpl extends AbstractVirtualContainer { ...@@ -55,7 +55,8 @@ public class NamedContainerImpl extends AbstractVirtualContainer {
@Override @Override
public boolean exists() { public boolean exists() {
return delegate != null && delegate.exists(); VFSContainer d = getDelegate();
return d != null && d.exists();
} }
public VFSContainer getDelegate() { public VFSContainer getDelegate() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment