[Java] Update auto-generated Java bindings
[ldk-java] / src / main / java / org / ldk / structs / Result_PaymentPreimageAPIErrorZ.java
index 44cae5f151e3f1550c8f39642a88f747ba69cce7..4dc39228dedf9112c7171100017ae0484697da4b 100644 (file)
@@ -34,7 +34,7 @@ public class Result_PaymentPreimageAPIErrorZ extends CommonBase {
                        super(_dummy, ptr);
                        long err = bindings.CResult_PaymentPreimageAPIErrorZ_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;
                }
        }