mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Make IPC work with nullable types and null values. (#1765)
This commit is contained in:
parent
de6dcb8b53
commit
e075a26ff7
1 changed files with 5 additions and 0 deletions
|
|
@ -166,7 +166,12 @@ internal class CallGateChannel
|
||||||
if (arg == null)
|
if (arg == null)
|
||||||
{
|
{
|
||||||
if (paramType.IsValueType)
|
if (paramType.IsValueType)
|
||||||
|
{
|
||||||
|
if (paramType.IsGenericType && paramType.GetGenericTypeDefinition() == typeof(Nullable<>))
|
||||||
|
continue;
|
||||||
|
|
||||||
throw new IpcValueNullError(this.Name, paramType, i);
|
throw new IpcValueNullError(this.Name, paramType, i);
|
||||||
|
}
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue