X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=c_sharp%2Fsrc%2Forg%2Fldk%2Fstructs%2FGraphSyncError.cs;h=2aadea96a8e7c192e26a6fbcc7ed6f10ed29caaa;hb=592c64eb658d92e314a2b983cea16cecf3882474;hp=1078fe2435f46afe30333eea90ba89833ca5b0bf;hpb=12fdbefaac81d5b4be6bb67addd6dcd7c46a182b;p=ldk-java diff --git a/c_sharp/src/org/ldk/structs/GraphSyncError.cs b/c_sharp/src/org/ldk/structs/GraphSyncError.cs index 1078fe24..2aadea96 100644 --- a/c_sharp/src/org/ldk/structs/GraphSyncError.cs +++ b/c_sharp/src/org/ldk/structs/GraphSyncError.cs @@ -79,7 +79,7 @@ public class GraphSyncError : CommonBase { * Utility method to constructs a new LightningError-variant GraphSyncError */ public static GraphSyncError lightning_error(org.ldk.structs.LightningError a) { - long ret = bindings.GraphSyncError_lightning_error(a == null ? 0 : a.ptr); + long ret = bindings.GraphSyncError_lightning_error(a.ptr); GC.KeepAlive(a); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.GraphSyncError ret_hu_conv = org.ldk.structs.GraphSyncError.constr_from_ptr(ret);