projects
/
ldk-java
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update to support None
[ldk-java]
/
src
/
main
/
java
/
org
/
ldk
/
structs
/
QueryShortChannelIds.java
diff --git
a/src/main/java/org/ldk/structs/QueryShortChannelIds.java
b/src/main/java/org/ldk/structs/QueryShortChannelIds.java
index 68cc1304d41303660df3a29db13c0d20b066fd63..316e4f94688c2ad94cfe823185a261367c51bd01 100644
(file)
--- a/
src/main/java/org/ldk/structs/QueryShortChannelIds.java
+++ b/
src/main/java/org/ldk/structs/QueryShortChannelIds.java
@@
-11,18
+11,18
@@
public class QueryShortChannelIds extends CommonBase {
}
public QueryShortChannelIds(QueryShortChannelIds orig) {
}
public QueryShortChannelIds(QueryShortChannelIds orig) {
- super(bindings.QueryShortChannelIds_clone(orig.ptr & ~1));
+ super(bindings.QueryShortChannelIds_clone(orig
== null ? 0 : orig
.ptr & ~1));
this.ptrs_to.add(orig);
}
public byte[] get_chain_hash(QueryShortChannelIds this_ptr) {
this.ptrs_to.add(orig);
}
public byte[] get_chain_hash(QueryShortChannelIds this_ptr) {
- byte[] ret = bindings.QueryShortChannelIds_get_chain_hash(this_ptr.ptr & ~1);
+ byte[] ret = bindings.QueryShortChannelIds_get_chain_hash(this_ptr
== null ? 0 : this_ptr
.ptr & ~1);
this.ptrs_to.add(this_ptr);
return ret;
}
public void set_chain_hash(QueryShortChannelIds this_ptr, byte[] val) {
this.ptrs_to.add(this_ptr);
return ret;
}
public void set_chain_hash(QueryShortChannelIds this_ptr, byte[] val) {
- bindings.QueryShortChannelIds_set_chain_hash(this_ptr.ptr & ~1, val);
+ bindings.QueryShortChannelIds_set_chain_hash(this_ptr
== null ? 0 : this_ptr
.ptr & ~1, val);
this.ptrs_to.add(this_ptr);
}
this.ptrs_to.add(this_ptr);
}