Update auto-generated bindings
[ldk-java] / src / main / java / org / ldk / structs / Result_NoneSemanticErrorZ.java
index 80f9537b90d50478e4763d0c653451fe2e7014e0..bed72c1a87c33d5b2d569a9cf9901390955d6bba 100644 (file)
@@ -37,6 +37,7 @@ public class Result_NoneSemanticErrorZ extends CommonBase {
         */
        public static Result_NoneSemanticErrorZ ok() {
                long ret = bindings.CResult_NoneSemanticErrorZ_ok();
+               if (ret < 1024) { return null; }
                Result_NoneSemanticErrorZ ret_hu_conv = Result_NoneSemanticErrorZ.constr_from_ptr(ret);
                return ret_hu_conv;
        }
@@ -46,6 +47,7 @@ public class Result_NoneSemanticErrorZ extends CommonBase {
         */
        public static Result_NoneSemanticErrorZ err(SemanticError e) {
                long ret = bindings.CResult_NoneSemanticErrorZ_err(e);
+               if (ret < 1024) { return null; }
                Result_NoneSemanticErrorZ ret_hu_conv = Result_NoneSemanticErrorZ.constr_from_ptr(ret);
                return ret_hu_conv;
        }
@@ -56,6 +58,7 @@ public class Result_NoneSemanticErrorZ extends CommonBase {
         */
        public Result_NoneSemanticErrorZ clone() {
                long ret = bindings.CResult_NoneSemanticErrorZ_clone(this.ptr);
+               if (ret < 1024) { return null; }
                Result_NoneSemanticErrorZ ret_hu_conv = Result_NoneSemanticErrorZ.constr_from_ptr(ret);
                return ret_hu_conv;
        }