Update auto-generated bindings
[ldk-java] / src / main / java / org / ldk / structs / UpdateFee.java
index 38fceb240fe01b42b09da27250db56fbefb74638..54637409095567f02f27f8fe42e85222a54334a1 100644 (file)
@@ -53,6 +53,7 @@ public class UpdateFee extends CommonBase {
         */
        public static UpdateFee of(byte[] channel_id_arg, int feerate_per_kw_arg) {
                long ret = bindings.UpdateFee_new(channel_id_arg, feerate_per_kw_arg);
+               if (ret < 1024) { return null; }
                UpdateFee ret_hu_conv = new UpdateFee(null, ret);
                ret_hu_conv.ptrs_to.add(ret_hu_conv);
                return ret_hu_conv;
@@ -63,6 +64,7 @@ public class UpdateFee extends CommonBase {
         */
        public UpdateFee clone() {
                long ret = bindings.UpdateFee_clone(this.ptr);
+               if (ret < 1024) { return null; }
                UpdateFee ret_hu_conv = new UpdateFee(null, ret);
                ret_hu_conv.ptrs_to.add(this);
                return ret_hu_conv;
@@ -81,6 +83,7 @@ public class UpdateFee extends CommonBase {
         */
        public static Result_UpdateFeeDecodeErrorZ read(byte[] ser) {
                long ret = bindings.UpdateFee_read(ser);
+               if (ret < 1024) { return null; }
                Result_UpdateFeeDecodeErrorZ ret_hu_conv = Result_UpdateFeeDecodeErrorZ.constr_from_ptr(ret);
                return ret_hu_conv;
        }