[Java] Update auto-generated Java structs
[ldk-java] / src / main / java / org / ldk / structs / ReplyShortChannelIdsEnd.java
index ce8385fcd526b0f534f6fa51440d869be85c8a4e..6c972fcfcd07cc14d6baa1b2c3d609ad6cd10d57 100644 (file)
@@ -70,7 +70,7 @@ public class ReplyShortChannelIdsEnd extends CommonBase {
                Reference.reachabilityFence(full_information_arg);
                if (ret >= 0 && ret <= 4096) { return null; }
                org.ldk.structs.ReplyShortChannelIdsEnd ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ReplyShortChannelIdsEnd(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;
        }
 
@@ -88,7 +88,7 @@ public class ReplyShortChannelIdsEnd extends CommonBase {
                Reference.reachabilityFence(this);
                if (ret >= 0 && ret <= 4096) { return null; }
                org.ldk.structs.ReplyShortChannelIdsEnd ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ReplyShortChannelIdsEnd(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;
        }