fix nre
This commit is contained in:
parent
a3b7eccc3d
commit
7b5dfa673a
1 changed files with 3 additions and 0 deletions
|
|
@ -149,6 +149,9 @@ public class Logger : ILogger
|
|||
object objectToAdd = currentLog.Args[currentArg];
|
||||
currentArg++;
|
||||
|
||||
if (objectToAdd is null)
|
||||
continue;
|
||||
|
||||
if (objectToAdd.GetType() == typeof(int))
|
||||
builder.Add(new StringPart { String = objectToAdd.ToString(), Color = ConsoleColor.Magenta });
|
||||
else if (objectToAdd.GetType() == typeof(long))
|
||||
|
|
|
|||
Reference in a new issue