Update auto-generated bindings
[ldk-java] / src / main / java / org / ldk / structs / AcceptChannel.java
index cc61466ef5f0100f68a14870956413a6b9f6b5ad..631f0854a635fcafcee039518b9d01339d007982 100644 (file)
@@ -233,6 +233,7 @@ public class AcceptChannel extends CommonBase {
         */
        public AcceptChannel clone() {
                long ret = bindings.AcceptChannel_clone(this.ptr);
+               if (ret < 1024) { return null; }
                AcceptChannel ret_hu_conv = new AcceptChannel(null, ret);
                ret_hu_conv.ptrs_to.add(this);
                return ret_hu_conv;
@@ -251,6 +252,7 @@ public class AcceptChannel extends CommonBase {
         */
        public static Result_AcceptChannelDecodeErrorZ read(byte[] ser) {
                long ret = bindings.AcceptChannel_read(ser);
+               if (ret < 1024) { return null; }
                Result_AcceptChannelDecodeErrorZ ret_hu_conv = Result_AcceptChannelDecodeErrorZ.constr_from_ptr(ret);
                return ret_hu_conv;
        }