Skip to content

Commit 2eb93e6

Browse files
committed
[28413] null check before accessing family doctor of patient
1 parent 8c4bdd9 commit 2eb93e6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bundles/at.medevit.elexis.inbox/src/at/medevit/elexis/inbox/model/impl/InboxElementService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ public Optional<IMandator> getInboxElementMandator(String providerId, IPatient p
221221
Optional<IMandator> ret = Optional.empty();
222222
if (mandatorConfig == Mandator.FAMILY) {
223223
IContact doctor = patient.getFamilyDoctor();
224-
if(doctor.isMandator()) {
224+
if (doctor != null && doctor.isMandator()) {
225225
ret = coreModelService.load(doctor.getId(), IMandator.class);
226226
}
227227
}

0 commit comments

Comments
 (0)