Improve FS
[lgpl/argeo-commons.git] / org.argeo.eclipse.ui / src / org / argeo / eclipse / ui / fs / FsTableViewer.java
index 47258f718df314c5d02e4e4638046cd4a0ef490e..3476739bcbd2e24fdc0a95607e23f2fb47418eb6 100644 (file)
@@ -78,7 +78,13 @@ public class FsTableViewer extends TableViewer {
                        this.setItemCount(0);
                        return;
                }
-               boolean isRoot = dir.getRoot().equals(dir);
+               boolean isRoot;
+               try {
+                       isRoot = dir.getRoot().equals(dir);
+               } catch (Exception e) {
+                       // FIXME Workaround for JCR root node access
+                       isRoot = dir.toString().equals("/");
+               }
                final Object[] res;
                if (isRoot)
                        res = rows;