diff --git a/framework/core/src/Notification/Notification.php b/framework/core/src/Notification/Notification.php index 4d81e5dbe..b44446d0d 100644 --- a/framework/core/src/Notification/Notification.php +++ b/framework/core/src/Notification/Notification.php @@ -81,7 +81,9 @@ class Notification extends AbstractModel */ public function getDataAttribute($value) { - return json_decode($value, true); + return $value !== null + ? json_decode($value, true) + : null; } /**