diff options
-rw-r--r-- | src/SMAPI/Metadata/CoreAssetPropagator.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/SMAPI/Metadata/CoreAssetPropagator.cs b/src/SMAPI/Metadata/CoreAssetPropagator.cs index 424abc18..159e19fd 100644 --- a/src/SMAPI/Metadata/CoreAssetPropagator.cs +++ b/src/SMAPI/Metadata/CoreAssetPropagator.cs @@ -1238,6 +1238,9 @@ namespace StardewModdingAPI.Metadata /// <param name="right">The second value to compare.</param> private bool IsSameBaseName(IAssetName left, string right) { + if (left is null || right is null) + return false; + IAssetName parsedB = this.ParseAssetNameOrNull(right); return this.IsSameBaseName(left, parsedB); } @@ -1247,6 +1250,9 @@ namespace StardewModdingAPI.Metadata /// <param name="right">The second value to compare.</param> private bool IsSameBaseName(IAssetName left, IAssetName right) { + if (left is null || right is null) + return false; + return left.IsEquivalentTo(right.BaseName, useBaseName: true); } |