Skip to content

Commit

Permalink
fix security bug
Browse files Browse the repository at this point in the history
  • Loading branch information
snf2ye committed Aug 24, 2023
1 parent a97a7c2 commit 35af4ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions library/src/main/java/bio/terra/pfb/PfbReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,9 @@ public Metadata getPFBMetadata(String fileLocation) throws IOException {
// Assuming the first object is the metadata object
data = dataFileReader.next(data);
result = (Metadata) data.getObject();
} catch (IOException e) {
e.printStackTrace();
}
if (result != null) {
return result;
if (result != null) {
return result;
}
}
throw new InvalidPfbException("Error reading PFB Metadata object");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public static void compareJSONLineByLine(
}
fileReader.close();
} catch (IOException e) {
e.printStackTrace();
System.out.println("Error reading file: " + fileName);
}
}

Expand Down

0 comments on commit 35af4ea

Please sign in to comment.