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;
}
}
/**
* 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;
}