[Java] Update auto-generated Java bindings for 0.0.113
[ldk-java] / src / main / java / org / ldk / structs / TwoTuple_u32TxOutZ.java
index e395b30ac133e88e5fbf613f1549f6daa5a70ccd..7c2a6102af2b71f723c53de88c4227150c1e2aee 100644 (file)
@@ -55,20 +55,20 @@ public class TwoTuple_u32TxOutZ extends CommonBase {
                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;
        }