[Java] Update auto-generated Java bindings
[ldk-java] / src / main / java / org / ldk / structs / UnsignedNodeAnnouncement.java
index 269bd489e8ae3321ee723a55b74de72d82486502..043efcb4706807c2fba3e966205fd13aa036f777 100644 (file)
@@ -28,7 +28,7 @@ public class UnsignedNodeAnnouncement extends CommonBase {
                Reference.reachabilityFence(this);
                if (ret >= 0 && ret <= 4096) { return null; }
                org.ldk.structs.NodeFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.NodeFeatures(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;
        }
 
@@ -130,7 +130,7 @@ public class UnsignedNodeAnnouncement extends CommonBase {
                for (int m = 0; m < ret_conv_12_len; m++) {
                        long ret_conv_12 = ret[m];
                        org.ldk.structs.NetAddress ret_conv_12_hu_conv = org.ldk.structs.NetAddress.constr_from_ptr(ret_conv_12);
-                       ret_conv_12_hu_conv.ptrs_to.add(this);
+                       if (ret_conv_12_hu_conv != null) { ret_conv_12_hu_conv.ptrs_to.add(this); };
                        ret_conv_12_arr[m] = ret_conv_12_hu_conv;
                }
                return ret_conv_12_arr;
@@ -159,7 +159,7 @@ public class UnsignedNodeAnnouncement extends CommonBase {
                Reference.reachabilityFence(this);
                if (ret >= 0 && ret <= 4096) { return null; }
                org.ldk.structs.UnsignedNodeAnnouncement ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.UnsignedNodeAnnouncement(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;
        }