[Java] Update auto-generated Java structs
[ldk-java] / src / main / java / org / ldk / structs / ReplyChannelRange.java
index ce08c8a8305934d5a9464bd3c3f601ff6b4d358f..6a80ecf15dd4d46f0d8046f2051a8e1c6267e65a 100644 (file)
@@ -98,6 +98,17 @@ public class ReplyChannelRange extends CommonBase {
                Reference.reachabilityFence(val);
        }
 
+       /**
+        * The short_channel_ids in the channel range
+        * 
+        * Returns a copy of the field.
+        */
+       public long[] get_short_channel_ids() {
+               long[] ret = bindings.ReplyChannelRange_get_short_channel_ids(this.ptr);
+               Reference.reachabilityFence(this);
+               return ret;
+       }
+
        /**
         * The short_channel_ids in the channel range
         */
@@ -119,7 +130,7 @@ public class ReplyChannelRange extends CommonBase {
                Reference.reachabilityFence(short_channel_ids_arg);
                if (ret >= 0 && ret <= 4096) { return null; }
                org.ldk.structs.ReplyChannelRange ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ReplyChannelRange(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;
        }
 
@@ -137,7 +148,7 @@ public class ReplyChannelRange extends CommonBase {
                Reference.reachabilityFence(this);
                if (ret >= 0 && ret <= 4096) { return null; }
                org.ldk.structs.ReplyChannelRange ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ReplyChannelRange(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;
        }