Skip to content

Commit 6cadd1d

Browse files
committed
fix: fix null pointer exception
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
1 parent af4ff48 commit 6cadd1d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/ContextChat/ContextChatProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public function getAppId(): string {
100100
* @since 1.1.0
101101
*/
102102
public function getItemUrl(string $id): string {
103-
return $this->bookmarkService->findById(intval($id))->getUrl();
103+
return $this->bookmarkService->findById(intval($id))?->getUrl() ?? '';
104104
}
105105

106106
/**

0 commit comments

Comments
 (0)