We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebbf33c commit 864d7e3Copy full SHA for 864d7e3
src/main/java/org/scijava/ui/swing/script/FileSystemTree.java
@@ -178,7 +178,12 @@ public synchronized int getChildCount() {
178
@Override
179
public synchronized Node getChildAt(final int index) {
180
if (0 == getChildCount()) return null;
181
- return (Node) super.getChildAt(index);
+ try {
182
+ return (Node) super.getChildAt(index);
183
+ } catch (ArrayIndexOutOfBoundsException ae) {
184
+ System.out.println("FileSystemTree: no child at index " + index + " for file at " + this.path);
185
+ return null;
186
+ }
187
}
188
189
public Icon getIcon() {
0 commit comments