X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fldk%2Fstructs%2FQueryShortChannelIds.java;h=71f869a35966975d9f5ad46361d14a52cf3a49f0;hb=f385eff0dd0aa61fbf21ae946c424f4a6a26de04;hp=6be3a63d8918c3186009a9b51472930207197d51;hpb=47341beaeecf907f422f126500baf586d54a0d41;p=ldk-java diff --git a/src/main/java/org/ldk/structs/QueryShortChannelIds.java b/src/main/java/org/ldk/structs/QueryShortChannelIds.java index 6be3a63d..71f869a3 100644 --- a/src/main/java/org/ldk/structs/QueryShortChannelIds.java +++ b/src/main/java/org/ldk/structs/QueryShortChannelIds.java @@ -45,6 +45,17 @@ public class QueryShortChannelIds extends CommonBase { Reference.reachabilityFence(val); } + /** + * The short_channel_ids that are being queried + * + * Returns a copy of the field. + */ + public long[] get_short_channel_ids() { + long[] ret = bindings.QueryShortChannelIds_get_short_channel_ids(this.ptr); + Reference.reachabilityFence(this); + return ret; + } + /** * The short_channel_ids that are being queried */ @@ -63,7 +74,7 @@ public class QueryShortChannelIds extends CommonBase { Reference.reachabilityFence(short_channel_ids_arg); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.QueryShortChannelIds ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.QueryShortChannelIds(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; } @@ -81,7 +92,7 @@ public class QueryShortChannelIds extends CommonBase { Reference.reachabilityFence(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.QueryShortChannelIds ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.QueryShortChannelIds(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; }