Update auto-generated bindings
[ldk-java] / src / main / java / org / ldk / structs / ChannelMonitorUpdate.java
index fec769a5ee731b6158b326cf56f3116b1ea89655..06c462ecfec3fb59a10ed133004ca2ade0707221 100644 (file)
@@ -59,6 +59,7 @@ public class ChannelMonitorUpdate extends CommonBase {
         */
        public ChannelMonitorUpdate clone() {
                long ret = bindings.ChannelMonitorUpdate_clone(this.ptr);
+               if (ret < 1024) { return null; }
                ChannelMonitorUpdate ret_hu_conv = new ChannelMonitorUpdate(null, ret);
                ret_hu_conv.ptrs_to.add(this);
                return ret_hu_conv;
@@ -77,6 +78,7 @@ public class ChannelMonitorUpdate extends CommonBase {
         */
        public static Result_ChannelMonitorUpdateDecodeErrorZ read(byte[] ser) {
                long ret = bindings.ChannelMonitorUpdate_read(ser);
+               if (ret < 1024) { return null; }
                Result_ChannelMonitorUpdateDecodeErrorZ ret_hu_conv = Result_ChannelMonitorUpdateDecodeErrorZ.constr_from_ptr(ret);
                return ret_hu_conv;
        }