File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ public class Request
12
12
13
13
public string Method { get ; set ; }
14
14
15
+ [ JsonProperty ( NullValueHandling = NullValueHandling . Ignore ) ]
15
16
public object Params { get ; set ; }
16
17
}
17
- }
18
+ }
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ protected virtual Renor GetRenor(JToken @object)
78
78
}
79
79
80
80
var hasParams = request . TryGetValue ( "params" , out var @params ) ;
81
- if ( hasParams && @params . Type != JTokenType . Array && @params . Type != JTokenType . Object )
81
+ if ( hasParams && @params ? . Type != JTokenType . Array && @params ? . Type != JTokenType . Object )
82
82
{
83
83
return new InvalidRequest ( requestId , "Invalid params" ) ;
84
84
}
@@ -95,4 +95,4 @@ protected virtual Renor GetRenor(JToken @object)
95
95
}
96
96
}
97
97
}
98
- }
98
+ }
You can’t perform that action at this time.
0 commit comments