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;
}
}
/**
* 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; }