Skip to content

Commit 810ea55

Browse files
authored
[Core] Resolve null in event parsing (#67)
1 parent b0bfe66 commit 810ea55

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Lagrange.Core/Internal/Services/System/InfoSyncPushService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ protected override ValueTask<InfoSyncPushEvent> Parse(ReadOnlyMemory<byte> input
1616
var obj = ProtoObject.Parse(input.Span);
1717
var push = ProtoHelper.Deserialize<InfoSyncPush>(input.Span);
1818

19-
return base.Parse(input, context);
19+
return ValueTask.FromResult(new InfoSyncPushEvent());
2020
}
2121
}

Lagrange.Core/Internal/Services/System/PushParamsService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ protected override ValueTask<PushParamsEvent> Parse(ReadOnlyMemory<byte> input,
1414
{
1515
var @params = ProtoHelper.Deserialize<PushParams>(input.Span);
1616

17-
return base.Parse(input, context);
17+
return ValueTask.FromResult(new PushParamsEvent());
1818
}
1919
}

0 commit comments

Comments
 (0)