Update auto-generated bindings
[ldk-java] / src / main / java / org / ldk / structs / CommitmentSigned.java
index 33893520e36665172281d0f025384cc844d37562..41ac7d1a209a6d2b9cb26fe81f447eac434b4f94 100644 (file)
@@ -60,6 +60,7 @@ public class CommitmentSigned extends CommonBase {
         */
        public static CommitmentSigned of(byte[] channel_id_arg, byte[] signature_arg, byte[][] htlc_signatures_arg) {
                long ret = bindings.CommitmentSigned_new(channel_id_arg, signature_arg, htlc_signatures_arg);
+               if (ret < 1024) { return null; }
                CommitmentSigned ret_hu_conv = new CommitmentSigned(null, ret);
                ret_hu_conv.ptrs_to.add(ret_hu_conv);
                return ret_hu_conv;
@@ -70,6 +71,7 @@ public class CommitmentSigned extends CommonBase {
         */
        public CommitmentSigned clone() {
                long ret = bindings.CommitmentSigned_clone(this.ptr);
+               if (ret < 1024) { return null; }
                CommitmentSigned ret_hu_conv = new CommitmentSigned(null, ret);
                ret_hu_conv.ptrs_to.add(this);
                return ret_hu_conv;
@@ -88,6 +90,7 @@ public class CommitmentSigned extends CommonBase {
         */
        public static Result_CommitmentSignedDecodeErrorZ read(byte[] ser) {
                long ret = bindings.CommitmentSigned_read(ser);
+               if (ret < 1024) { return null; }
                Result_CommitmentSignedDecodeErrorZ ret_hu_conv = Result_CommitmentSignedDecodeErrorZ.constr_from_ptr(ret);
                return ret_hu_conv;
        }