X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fldk%2Fstructs%2FResult_C2Tuple_PaymentHashPaymentSecretZNoneZ.java;h=5d79cad969306310f5c4bdd2461254f4f2b7c029;hb=8aa8a96fc6d8fcdd3fbb419b4b4c12482af14938;hp=4280cd7683dcf99c0b76c3a1f566267d376f5f91;hpb=d87886bb194886ef86d3597a5cdc142b6ccc89e9;p=ldk-java diff --git a/src/main/java/org/ldk/structs/Result_C2Tuple_PaymentHashPaymentSecretZNoneZ.java b/src/main/java/org/ldk/structs/Result_C2Tuple_PaymentHashPaymentSecretZNoneZ.java index 4280cd76..5d79cad9 100644 --- a/src/main/java/org/ldk/structs/Result_C2Tuple_PaymentHashPaymentSecretZNoneZ.java +++ b/src/main/java/org/ldk/structs/Result_C2Tuple_PaymentHashPaymentSecretZNoneZ.java @@ -26,7 +26,7 @@ public class Result_C2Tuple_PaymentHashPaymentSecretZNoneZ extends CommonBase { super(_dummy, ptr); long res = bindings.CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_get_ok(ptr); TwoTuple_PaymentHashPaymentSecretZ res_hu_conv = new TwoTuple_PaymentHashPaymentSecretZ(null, res); - res_hu_conv.ptrs_to.add(this); + if (res_hu_conv != null) { res_hu_conv.ptrs_to.add(this); }; this.res = res_hu_conv; } } @@ -40,7 +40,7 @@ public class Result_C2Tuple_PaymentHashPaymentSecretZNoneZ extends CommonBase { /** * Creates a new CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ in the success state. */ - public static Result_C2Tuple_PaymentHashPaymentSecretZNoneZ ok(TwoTuple_PaymentHashPaymentSecretZ o) { + public static Result_C2Tuple_PaymentHashPaymentSecretZNoneZ ok(org.ldk.structs.TwoTuple_PaymentHashPaymentSecretZ o) { long ret = bindings.CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_ok(o != null ? o.ptr : 0); Reference.reachabilityFence(o); if (ret >= 0 && ret <= 4096) { return null; }