-
Notifications
You must be signed in to change notification settings - Fork 498
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avoid assertion error crashes during import #4829
Avoid assertion error crashes during import #4829
Conversation
140437c
to
92e229d
Compare
@mandawilson @averyniceday @sheridancbio I recommend viewing the diff without the whitespace changes |
92e229d
to
e49d3d1
Compare
e49d3d1
to
d68989a
Compare
3263520
to
bbc2e37
Compare
Throws exception when a sample ID is not known to database AND is not a normal sample. Otherwise, assertion failure causes importer to crash and does not log the issue. Signed-off-by: Angelica Ochoa <[email protected]>
bbc2e37
to
67f3963
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great. This allows exceptions to be caught be a client java application (such as the mskcc importer), rather than having AssertionErrors terminate the client program.
- also : very glad that github offers the "Hide Whitespace Changes" option when doing PR review 👏
@@ -56,7 +56,7 @@ | |||
public static final String CNA_VALUE_ZERO = "0"; | |||
private HashSet<Long> importSetOfGenes = new HashSet<Long>(); | |||
private HashSet<Integer> importedGeneticEntitySet = new HashSet<>(); | |||
private File mutationFile; | |||
private File dataFile; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Throws exception when a sample ID is not known to database AND is not a normal sample. Otherwise, assertion failure causes importer to crash and does not log the issue.
Signed-off-by: Angelica Ochoa [email protected]
Checks