mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 10:17:22 +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 (paramType.IsValueType)
|
||||
{
|
||||
if (paramType.IsGenericType && paramType.GetGenericTypeDefinition() == typeof(Nullable<>))
|
||||
continue;
|
||||
|
||||
throw new IpcValueNullError(this.Name, paramType, i);
|
||||
}
|
||||
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue