Skip to content

Commit

Permalink
fix: Malformed zip showing stuck progress message
Browse files Browse the repository at this point in the history
Still doesnt open properly, but its better than a stuck-on-load message
  • Loading branch information
Col-E committed May 10, 2021
1 parent 07a4b37 commit 783f37a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/me/coley/recaf/workspace/JavaResource.java
Expand Up @@ -247,6 +247,7 @@ public ListeningMap<String, byte[]> getClasses() {
}));
} catch(IOException ex) {
error(ex, "Failed to load classes from resource \"{}\"", toString());
cachedClasses.setBacking(Collections.emptyMap());
}
}
}
Expand Down Expand Up @@ -281,6 +282,7 @@ public ListeningMap<String, byte[]> getFiles() {
}
} catch(IOException ex) {
error(ex, "Failed to load files from resource \"{}\"", toString());
cachedFiles.setBacking(Collections.emptyMap());
}
}
return cachedFiles;
Expand Down

0 comments on commit 783f37a

Please sign in to comment.