From 41f22f45c3db9bef0843ac1252ee0c3eb44348c0 Mon Sep 17 00:00:00 2001 From: Kristen Pol Date: Sun, 7 Jan 2024 12:58:59 -0800 Subject: [PATCH] Added path alias checks to avoid fatal errors. --- quant.module | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/quant.module b/quant.module index 77f469e9..8f5c9a90 100644 --- a/quant.module +++ b/quant.module @@ -412,6 +412,10 @@ function quant_modules_uninstalled($modules) { * The path alias. */ function quant_path_alias_presave(EntityInterface $pathAlias) { + if (!$pathAlias || !$pathAlias->original) { + return; + } + // Original path alias. $original_path = $pathAlias->original->get('path')->value; $original_alias = $pathAlias->original->get('alias')->value;