[Java] Update auto-generated Java structs
[ldk-java] / src / main / java / org / ldk / structs / Result_C2Tuple_PaymentHashPaymentSecretZNoneZ.java
index 84281dc7153b2386d430a5836bec773a745aaeda..27c3a5674728b3da5e1dea27dc5bfb992aaee2e3 100644 (file)
@@ -24,9 +24,9 @@ public class Result_C2Tuple_PaymentHashPaymentSecretZNoneZ extends CommonBase {
                public final TwoTuple_PaymentHashPaymentSecretZ res;
                private Result_C2Tuple_PaymentHashPaymentSecretZNoneZ_OK(Object _dummy, long ptr) {
                        super(_dummy, ptr);
-                       long res = bindings.LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_get_ok(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;
                }
        }