Skip to content

Commit 3a11805

Browse files
committed
Issue when participation is null musonza#318
1 parent 8f03df6 commit 3a11805

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Models/Message.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function participation()
4848

4949
public function getSenderAttribute()
5050
{
51-
$participantModel = $this->participation->messageable;
51+
$participantModel = $this->participation?->messageable;
5252

5353
if (!isset($participantModel)) {
5454
return null;

0 commit comments

Comments
 (0)