From 7b8bc612205020d58dc7f908e978387e454180b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Fri, 28 Mar 2025 08:35:30 +0100 Subject: [PATCH] fix: avoid null pointer exception --- src/BusProNet/Model/PersonalData.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,