1
0
mirror of https://github.com/ZetaKebab/MpcNET.git synced 2024-09-16 05:30:09 +00:00

Fix null pointer when no mpcConnectionReporter is set

This commit is contained in:
Petr Kracik 2020-01-06 12:55:16 +01:00
parent 4663c2abf7
commit 81f565469a

View File

@ -216,7 +216,7 @@ namespace MpcNET
do
{
responseLine = await reader.ReadLineAsync();
this.mpcConnectionReporter.ReadResponse(responseLine, commandText);
this.mpcConnectionReporter?.ReadResponse(responseLine, commandText);
if (responseLine == null)
{
break;