X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=c_sharp%2Fsrc%2Forg%2Fldk%2Fstructs%2FPersister.cs;fp=c_sharp%2Fsrc%2Forg%2Fldk%2Fstructs%2FPersister.cs;h=0f9bbe37e72187ad9a4e3951b9e69d6d73abd812;hb=c6777737ea14e7814b0fa7d6fe16536f31d4a82b;hp=1550d8e9055954731bda9e069f170eaeab4e3d58;hpb=ee72c84d4bf9e2404e02fe20155efb502ceaee1b;p=ldk-java diff --git a/c_sharp/src/org/ldk/structs/Persister.cs b/c_sharp/src/org/ldk/structs/Persister.cs index 1550d8e9..0f9bbe37 100644 --- a/c_sharp/src/org/ldk/structs/Persister.cs +++ b/c_sharp/src/org/ldk/structs/Persister.cs @@ -96,7 +96,7 @@ public class Persister : CommonBase { * Persist the given [`WriteableScore`] to disk, returning an error if persistence failed. */ public Result_NoneErrorZ persist_scorer(org.ldk.structs.WriteableScore scorer) { - long ret = bindings.Persister_persist_scorer(this.ptr, scorer == null ? 0 : scorer.ptr); + long ret = bindings.Persister_persist_scorer(this.ptr, scorer.ptr); GC.KeepAlive(this); GC.KeepAlive(scorer); if (ret >= 0 && ret <= 4096) { return null; }