Skip to content

Commit f68f0d2

Browse files
committed
Add extra null check in PlayerDisplay:AddHints
1 parent e395ae9 commit f68f0d2

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

HintServiceMeow/Core/Utilities/PlayerDisplay.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,9 @@ public void AddHint(IEnumerable<AbstractHint>? hints)
306306

307307
foreach (AbstractHint hint in hints)
308308
{
309+
if (hint is null)
310+
continue;
311+
309312
InternalAddHint(groupName, hint);
310313
}
311314
}
@@ -322,6 +325,9 @@ public void AddHint(params AbstractHint[]? hints)
322325
string groupName = Assembly.GetCallingAssembly().FullName;
323326
foreach (AbstractHint hint in hints)
324327
{
328+
if (hint is null)
329+
continue;
330+
325331
InternalAddHint(groupName, hint);
326332
}
327333
}

0 commit comments

Comments
 (0)