Skip to content

Commit

Permalink
Merge pull request #575 from mozzy11/2.8
Browse files Browse the repository at this point in the history
catch NPE if IHS report params are empty
  • Loading branch information
mozzy11 authored Oct 26, 2023
2 parents 69c3390 + 4d57e64 commit 19ce308
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,13 @@ protected void setAdditionalReportItems() {
String reportDetails = MessageUtil.getMessage("dualInSitu.report.details", new String[] {
form.getNumberOfcancerNuclei(), form.getAverageHer2(), form.getAverageChrom(), form.getIhcRatio() });
data.setIhcReportDetails(reportDetails);
if (form.getIhcScore().equals("AMPLIFICATION")) {
data.setIhcScore(MessageUtil.getMessage("dualInSitu.label.amp"));
} else {
data.setIhcScore(MessageUtil.getMessage("dualInSitu.label.noAmp"));
if (form.getIhcScore() != null) {
if (form.getIhcScore().equals("AMPLIFICATION")) {
data.setIhcScore(MessageUtil.getMessage("dualInSitu.label.amp"));
} else {
data.setIhcScore(MessageUtil.getMessage("dualInSitu.label.noAmp"));
}

}
}

Expand Down

0 comments on commit 19ce308

Please sign in to comment.