Skip to content

Commit 7cec0dd

Browse files
NZSmartieqdot
authored andcommitted
Allow log manager for ButtplugJsonMessageParser to be optional
1 parent 8d5edd1 commit 7cec0dd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Buttplug.Core/ButtplugJsonMessageParser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public ButtplugMessage[] Deserialize(string aJsonMsg)
114114
if (!o.Properties().Any())
115115
{
116116
var err = new Error("No message name available", ErrorClass.ERROR_MSG, ButtplugConsts.SystemMsgId);
117-
_bpLogger.LogErrorMsg(err);
117+
_bpLogger?.LogErrorMsg(err);
118118
res.Add(err);
119119
continue;
120120
}

0 commit comments

Comments
 (0)