[Java] Update auto-generated Java structs
[ldk-java] / src / main / java / org / ldk / structs / ProbabilisticScoringParameters.java
index f06afe278da882b1d9b9b28511c70dbc84ac22d3..3617ce0d6f63406d14e1a6ce25f693c9c3562051 100644 (file)
@@ -314,7 +314,7 @@ public class ProbabilisticScoringParameters extends CommonBase {
                Reference.reachabilityFence(this);
                if (ret >= 0 && ret <= 4096) { return null; }
                org.ldk.structs.ProbabilisticScoringParameters ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ProbabilisticScoringParameters(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;
        }
 
@@ -326,7 +326,7 @@ public class ProbabilisticScoringParameters extends CommonBase {
                bindings.ProbabilisticScoringParameters_add_banned_from_list(this.ptr, node_ids != null ? Arrays.stream(node_ids).mapToLong(node_ids_conv_8 -> node_ids_conv_8 == null ? 0 : node_ids_conv_8.ptr).toArray() : null);
                Reference.reachabilityFence(this);
                Reference.reachabilityFence(node_ids);
-               for (NodeId node_ids_conv_8: node_ids) { this.ptrs_to.add(node_ids_conv_8); };
+               for (NodeId node_ids_conv_8: node_ids) { if (this != null) { this.ptrs_to.add(node_ids_conv_8); }; };
        }
 
        /**
@@ -336,7 +336,7 @@ public class ProbabilisticScoringParameters extends CommonBase {
                long ret = bindings.ProbabilisticScoringParameters_default();
                if (ret >= 0 && ret <= 4096) { return null; }
                org.ldk.structs.ProbabilisticScoringParameters ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ProbabilisticScoringParameters(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;
        }