Skip to content

Commit 307c291

Browse files
committed
fix error performing update check for mods with no wiki entry
1 parent 2e9a26c commit 307c291

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SMAPI.Web/Controllers/ModsApiController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ private IEnumerable<UpdateKey> GetUpdateKeys(string[] specifiedKeys, ModDataReco
291291
.ToList();
292292

293293
// apply overrides from wiki
294-
if (entry.Overrides?.ChangeUpdateKeys?.HasChanges == true)
294+
if (entry?.Overrides?.ChangeUpdateKeys?.HasChanges == true)
295295
{
296296
List<string> newKeys = updateKeys.Select(p => p.ToString()).ToList();
297297
entry.Overrides.ChangeUpdateKeys.Apply(newKeys);

0 commit comments

Comments
 (0)