Skip to content

Commit

Permalink
Fixes IndexOutOfBoundsException on DirectoryTreeNodeFactoryProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanue1 committed Jun 14, 2015
1 parent a305719 commit dc7e03e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class DirectoryTreeNodeFactoryProvider extends AbstractTreeNodeFactoryProvider {
// Aggregate directory names
while (entries.size() == 1) {
Entry child = entries[0]
if ((child.isDirectory() == false) || (api.getTreeNodeFactory(child) != this)) break
if ((child.isDirectory() == false) || (api.getTreeNodeFactory(child) != this) || (entry.container != child.container)) break
entry = child
entries = entry.children
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class PackageTreeNodeFactoryProvider extends DirectoryTreeNodeFactoryProvider {
// Aggregate directory names
while (entries.size() == 1) {
Container.Entry child = entries[0]
if ((child.isDirectory() == false) || (api.getTreeNodeFactory(child) != this)) break
if ((child.isDirectory() == false) || (api.getTreeNodeFactory(child) != this) || (entry.container != child.container)) break
entry = child
entries = entry.children
}
Expand Down

0 comments on commit dc7e03e

Please sign in to comment.