Update auto-generated bindings
[ldk-java] / src / main / java / org / ldk / structs / OpenChannel.java
index f0e80ebade5afa8d156c24dd50ec4acdac798f7b..15aecc85c0834bd74cc33323e35d3e97cf8188f0 100644 (file)
@@ -293,6 +293,7 @@ public class OpenChannel extends CommonBase {
         */
        public OpenChannel clone() {
                long ret = bindings.OpenChannel_clone(this.ptr);
+               if (ret < 1024) { return null; }
                OpenChannel ret_hu_conv = new OpenChannel(null, ret);
                ret_hu_conv.ptrs_to.add(this);
                return ret_hu_conv;
@@ -311,6 +312,7 @@ public class OpenChannel extends CommonBase {
         */
        public static Result_OpenChannelDecodeErrorZ read(byte[] ser) {
                long ret = bindings.OpenChannel_read(ser);
+               if (ret < 1024) { return null; }
                Result_OpenChannelDecodeErrorZ ret_hu_conv = Result_OpenChannelDecodeErrorZ.constr_from_ptr(ret);
                return ret_hu_conv;
        }