Skip to content

Commit

Permalink
Merge pull request #36 from virustotalop/master
Browse files Browse the repository at this point in the history
Fixed filesaver not saving non-java files
  • Loading branch information
Deathmarine committed May 27, 2015
2 parents 872186a + b9bb2f5 commit bd8fe23
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/us/deathmarine/luyten/FileSaver.java
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,11 @@ private void doSaveJarDecompiled(File inFile, File outFile) throws Exception {
try {
JarEntry etn = new JarEntry(entry.getName());
if(history.add(etn))
continue;
{
history.add(etn);
out.putNextEntry(etn);
try {
InputStream in = jfile.getInputStream(entry);
InputStream in = jfile.getInputStream(etn);
if (in != null) {
try {
int count;
Expand All @@ -216,7 +216,8 @@ private void doSaveJarDecompiled(File inFile, File outFile) throws Exception {
} finally {
out.closeEntry();
}
} catch (ZipException ze) {
}
} catch (ZipException ze) {
// some jar-s contain duplicate pom.xml entries: ignore it
if (!ze.getMessage().contains("duplicate")) {
throw ze;
Expand Down

0 comments on commit bd8fe23

Please sign in to comment.