Skip to content

Commit

Permalink
Merge pull request #60 from ao508/npe-fix
Browse files Browse the repository at this point in the history
Fallback on existing cmo label if NPE thrown
  • Loading branch information
ao508 authored Mar 31, 2023
2 parents 036c14f + 9fdbea1 commit 8d80844
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,10 @@ private String resolveAndUpdateCmoSampleLabel(String samplePrimaryId,
} else {
throw new IllegalStateException(e);
}
} catch (NullPointerException e2) {
LOG.error("NPE caught during label generation check: ", e2);
LOG.error("Falling back on existing cmo sample name for sample.");
return matchingSample.getCmoSampleName();
}
if (!updateRequired) {
LOG.info("No change detected for CMO sample label metadata - using "
Expand Down

0 comments on commit 8d80844

Please sign in to comment.