From 5a9e8b7e1974f95afb26e3300a9c64f2cfe2a646 Mon Sep 17 00:00:00 2001 From: Jack Sleight Date: Tue, 30 Jun 2026 11:55:42 +0100 Subject: [PATCH] Guard against null asset in MuxMirrorFieldtype preload --- src/Fieldtypes/MuxMirrorFieldtype.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Fieldtypes/MuxMirrorFieldtype.php b/src/Fieldtypes/MuxMirrorFieldtype.php index 1e589a0..7c184c3 100644 --- a/src/Fieldtypes/MuxMirrorFieldtype.php +++ b/src/Fieldtypes/MuxMirrorFieldtype.php @@ -57,7 +57,7 @@ public function preload() return [ 'is_asset' => (bool) $asset, - 'is_video' => $asset->isVideo(), + 'is_video' => $asset?->isVideo() ?? false, 'is_proxy' => $muxAsset?->isProxy() ?? false, 'mux' => $muxAsset && $this->config('show_details') ? $this->muxInfo($muxAsset)