diff --git a/src/BusProNet/Model/PersonalData.php b/src/BusProNet/Model/PersonalData.php index 899ffbc..1675e4b 100644 --- a/src/BusProNet/Model/PersonalData.php +++ b/src/BusProNet/Model/PersonalData.php @@ -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,