X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fldk%2Fstructs%2FResult_PaymentSecretAPIErrorZ.java;h=7d086cf61f2047d0b59a295278bf75f037c6db33;hb=8aa8a96fc6d8fcdd3fbb419b4b4c12482af14938;hp=a2b89535f3c11c18d65df197ec03d3e07a9b5161;hpb=ff3dacec3be60f870d81f6df11bd9fff92aa6047;p=ldk-java diff --git a/src/main/java/org/ldk/structs/Result_PaymentSecretAPIErrorZ.java b/src/main/java/org/ldk/structs/Result_PaymentSecretAPIErrorZ.java index a2b89535..7d086cf6 100644 --- a/src/main/java/org/ldk/structs/Result_PaymentSecretAPIErrorZ.java +++ b/src/main/java/org/ldk/structs/Result_PaymentSecretAPIErrorZ.java @@ -34,7 +34,7 @@ public class Result_PaymentSecretAPIErrorZ extends CommonBase { super(_dummy, ptr); long err = bindings.CResult_PaymentSecretAPIErrorZ_get_err(ptr); org.ldk.structs.APIError err_hu_conv = org.ldk.structs.APIError.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,7 +53,7 @@ public class Result_PaymentSecretAPIErrorZ extends CommonBase { /** * Creates a new CResult_PaymentSecretAPIErrorZ in the error state. */ - public static Result_PaymentSecretAPIErrorZ err(APIError e) { + public static Result_PaymentSecretAPIErrorZ err(org.ldk.structs.APIError e) { long ret = bindings.CResult_PaymentSecretAPIErrorZ_err(e.ptr); Reference.reachabilityFence(e); if (ret >= 0 && ret <= 4096) { return null; }