X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;ds=inline;f=c_sharp%2Fsrc%2Forg%2Fldk%2Fstructs%2FOption_WriteableScoreZ.cs;h=24bdfeb8681665e83b048dbdad61330c7fff29fa;hb=592c64eb658d92e314a2b983cea16cecf3882474;hp=51b5c72141c80f3186644eefd63607854117f627;hpb=810f7404202e04f70db946ced7363b64ddaf4ce4;p=ldk-java diff --git a/c_sharp/src/org/ldk/structs/Option_WriteableScoreZ.cs b/c_sharp/src/org/ldk/structs/Option_WriteableScoreZ.cs index 51b5c721..24bdfeb8 100644 --- a/c_sharp/src/org/ldk/structs/Option_WriteableScoreZ.cs +++ b/c_sharp/src/org/ldk/structs/Option_WriteableScoreZ.cs @@ -43,7 +43,7 @@ public class Option_WriteableScoreZ : CommonBase { * Constructs a new COption_WriteableScoreZ containing a crate::lightning::routing::scoring::WriteableScore */ public static Option_WriteableScoreZ some(org.ldk.structs.WriteableScore o) { - long ret = bindings.COption_WriteableScoreZ_some(o == null ? 0 : o.ptr); + long ret = bindings.COption_WriteableScoreZ_some(o.ptr); GC.KeepAlive(o); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Option_WriteableScoreZ ret_hu_conv = org.ldk.structs.Option_WriteableScoreZ.constr_from_ptr(ret);