Update auto-generated bindings
[ldk-java] / src / main / java / org / ldk / structs / Pong.java
index f95040f8e0dfaf8ca808291ea596bcdf1aff6a95..a0c47de5fc87f3fd3cec81472c50edb323597bd9 100644 (file)
@@ -40,6 +40,7 @@ public class Pong extends CommonBase {
         */
        public static Pong of(short byteslen_arg) {
                long ret = bindings.Pong_new(byteslen_arg);
+               if (ret < 1024) { return null; }
                Pong ret_hu_conv = new Pong(null, ret);
                ret_hu_conv.ptrs_to.add(ret_hu_conv);
                return ret_hu_conv;
@@ -50,6 +51,7 @@ public class Pong extends CommonBase {
         */
        public Pong clone() {
                long ret = bindings.Pong_clone(this.ptr);
+               if (ret < 1024) { return null; }
                Pong ret_hu_conv = new Pong(null, ret);
                ret_hu_conv.ptrs_to.add(this);
                return ret_hu_conv;
@@ -68,6 +70,7 @@ public class Pong extends CommonBase {
         */
        public static Result_PongDecodeErrorZ read(byte[] ser) {
                long ret = bindings.Pong_read(ser);
+               if (ret < 1024) { return null; }
                Result_PongDecodeErrorZ ret_hu_conv = Result_PongDecodeErrorZ.constr_from_ptr(ret);
                return ret_hu_conv;
        }