fix bug causing NullPointerException in SavingsAccount (FINERACT-957)

This commit is contained in:
Michael Vorburger
2020-05-09 13:31:39 +02:00
committed by Michael Vorburger ⛑️
parent 27d754529e
commit e122f1ffd3
@@ -1572,7 +1572,7 @@ public class SavingsAccount extends AbstractPersistableCustom {
Long officeId = null; Long officeId = null;
if (this.client != null) { if (this.client != null) {
officeId = this.client.officeId(); officeId = this.client.officeId();
} else { } else if (this.group != null) {
officeId = this.group.officeId(); officeId = this.group.officeId();
} }
return officeId; return officeId;
@@ -1582,7 +1582,7 @@ public class SavingsAccount extends AbstractPersistableCustom {
Office office = null; Office office = null;
if (this.client != null) { if (this.client != null) {
office = this.client.getOffice(); office = this.client.getOffice();
} else { } else if (this.group != null) {
office = this.group.getOffice(); office = this.group.getOffice();
} }
return office; return office;