Add handling for signed int64 type
[ldk-java] / src / main / java / org / ldk / structs / Result_SiPrefixParseErrorZ.java
index 6f038e4948c1d4c3a0a32731d4d4f29322d25901..a13255b4f75a57e688d8e322ecd3392036f2544e 100644 (file)
@@ -34,7 +34,7 @@ public class Result_SiPrefixParseErrorZ extends CommonBase {
                        super(_dummy, ptr);
                        long err = bindings.CResult_SiPrefixParseErrorZ_get_err(ptr);
                        org.ldk.structs.ParseError err_hu_conv = org.ldk.structs.ParseError.constr_from_ptr(err);
-                       err_hu_conv.ptrs_to.add(this);
+                       if (err_hu_conv != null) { err_hu_conv.ptrs_to.add(this); };
                        this.err = err_hu_conv;
                }
        }
@@ -53,11 +53,12 @@ public class Result_SiPrefixParseErrorZ extends CommonBase {
        /**
         * Creates a new CResult_SiPrefixParseErrorZ in the error state.
         */
-       public static Result_SiPrefixParseErrorZ err(ParseError e) {
+       public static Result_SiPrefixParseErrorZ err(org.ldk.structs.ParseError e) {
                long ret = bindings.CResult_SiPrefixParseErrorZ_err(e.ptr);
                Reference.reachabilityFence(e);
                if (ret >= 0 && ret <= 4096) { return null; }
                Result_SiPrefixParseErrorZ ret_hu_conv = Result_SiPrefixParseErrorZ.constr_from_ptr(ret);
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(e); };
                return ret_hu_conv;
        }