Skip to content
This repository has been archived by the owner on Jan 28, 2021. It is now read-only.

Commit

Permalink
fix some renamers are crashing me
Browse files Browse the repository at this point in the history
  • Loading branch information
TerriblePanda committed Sep 13, 2019
1 parent a454c80 commit 4adeeea
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/main/java/me/grax/jbytemod/ui/ClassTree.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,14 @@ public void refreshTree(JarArchive jar) {
if (preloadMap.containsKey(p)) {
prev = preloadMap.get(p);
} else {
SortedTreeNode stn = new SortedTreeNode(path[i]);
prev.add(stn);
prev = stn;
preloadMap.put(p, prev);
try{
SortedTreeNode stn = new SortedTreeNode(path[i]);
prev.add(stn);
prev = stn;
preloadMap.put(p, prev);
}catch(ArrayIndexOutOfBoundsException ex){
JByteMod.LOGGER.println("Failed to load " + path[i]);
}
}
i++;
}
Expand Down

0 comments on commit 4adeeea

Please sign in to comment.