[Java] Update auto-generated Java bindings
[ldk-java] / src / main / java / org / ldk / structs / TwoTuple_BlockHashChannelManagerZ.java
index 1144ada9add58a8035f9f50ba7bc2ca4d609ec0a..37d16ac4bac95286baf197609c91968d0eefd896 100644 (file)
@@ -37,7 +37,7 @@ public class TwoTuple_BlockHashChannelManagerZ extends CommonBase {
                Reference.reachabilityFence(this);
                if (ret >= 0 && ret <= 4096) { return null; }
                org.ldk.structs.ChannelManager ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelManager(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;
        }
 
@@ -56,12 +56,12 @@ public class TwoTuple_BlockHashChannelManagerZ extends CommonBase {
                Reference.reachabilityFence(b_params);
                if (ret >= 0 && ret <= 4096) { return null; }
                TwoTuple_BlockHashChannelManagerZ ret_hu_conv = new TwoTuple_BlockHashChannelManagerZ(null, ret);
-               ret_hu_conv.ptrs_to.add(ret_hu_conv);
-               ret_hu_conv.ptrs_to.add(b_fee_est);
-               ret_hu_conv.ptrs_to.add(b_chain_monitor);
-               ret_hu_conv.ptrs_to.add(b_tx_broadcaster);
-               ret_hu_conv.ptrs_to.add(b_logger);
-               ret_hu_conv.ptrs_to.add(b_keys_manager);
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(ret_hu_conv); };
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(b_fee_est); };
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(b_chain_monitor); };
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(b_tx_broadcaster); };
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(b_logger); };
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(b_keys_manager); };
                ;
                ;
                return ret_hu_conv;