Skip to content

Commit

Permalink
fix: NPE if mengeHistologie is unset (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasminziegler authored May 7, 2024
1 parent e053596 commit 7633104
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,11 @@ public Bundle mapOnkoResourcesToObservation(List<MeldungExport> meldungExportLis
if (Objects.equals(meldeanlass, fhirProperties.getReportingReason().getDiagnosis())) {
// aus Diagnose: histologie, grading, c-tnm und p-tnm
histList = new ArrayList<>();
for (var hist : meldung.getDiagnose().getMenge_Histologie().getHistologie()) {
histList.add(new Tupel<>(hist, meldeanlass));
var mengeHistologie = meldung.getDiagnose().getMenge_Histologie();
if (mengeHistologie != null) {
for (var hist : mengeHistologie.getHistologie()) {
histList.add(new Tupel<>(hist, meldeanlass));
}
}
cTnm =
new Triple<>(
Expand Down

0 comments on commit 7633104

Please sign in to comment.