Skip to content

Commit

Permalink
catch NPE if IHS report params are empty
Browse files Browse the repository at this point in the history
  • Loading branch information
mozzy11 committed Oct 26, 2023
1 parent d7a9d07 commit 4d57e64
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 4d57e64

Please sign in to comment.