Reference.reachabilityFence(this);
if (ret >= 0 && ret <= 4096) { return null; }
TwoTuple_u32TxOutZ ret_hu_conv = new TwoTuple_u32TxOutZ(null, ret);
- ret_hu_conv.ptrs_to.add(this);
+ if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(this); };
return ret_hu_conv;
}
/**
* Creates a new C2Tuple_u32TxOutZ from the contained elements.
*/
- public static TwoTuple_u32TxOutZ of(int a, TxOut b) {
+ public static TwoTuple_u32TxOutZ of(int a, org.ldk.structs.TxOut b) {
long ret = bindings.C2Tuple_u32TxOutZ_new(a, b.ptr);
Reference.reachabilityFence(a);
Reference.reachabilityFence(b);
if (ret >= 0 && ret <= 4096) { return null; }
TwoTuple_u32TxOutZ ret_hu_conv = new TwoTuple_u32TxOutZ(null, ret);
- ret_hu_conv.ptrs_to.add(ret_hu_conv);
+ if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(ret_hu_conv); };
return ret_hu_conv;
}