fix: avoid null pointer exception

This commit is contained in:
Björn Fromme committed 2025-03-28 08:35:30 +01:00
1 parent 49e165b982
commit 7b8bc61220
1 file changed
+2 -2
+2 -2
View File
@@ -50,8 +50,8 @@ class PersonalData
'titel' => $this->title,
'vorname' => $this->firstName,
'name' => $this->name,
'anschrift' => $this->address->toPayload(),
'kommunikation' => $this->communication->toPayload(),
'anschrift' => $this->address?->toPayload(),
'kommunikation' => $this->communication?->toPayload(),
'sonstiges1' => $this->height,
'sonstiges2' => $this->weight,
'sonstiges3' => $this->shoeSize,