[Java] Update auto-generated Java bindings
[ldk-java] / src / main / java / org / ldk / structs / Result_InvoiceSemanticErrorZ.java
index 08db30ebf9b40248357b49e41ac589215726f65a..7beccf1f86296d44381f9e92d14c2138ff2fcdc5 100644 (file)
@@ -26,7 +26,7 @@ public class Result_InvoiceSemanticErrorZ extends CommonBase {
                        super(_dummy, ptr);
                        long res = bindings.CResult_InvoiceSemanticErrorZ_get_ok(ptr);
                        org.ldk.structs.Invoice res_hu_conv = null; if (res < 0 || res > 4096) { res_hu_conv = new org.ldk.structs.Invoice(null, res); }
-                       res_hu_conv.ptrs_to.add(this);
+                       if (res_hu_conv != null) { res_hu_conv.ptrs_to.add(this); };
                        this.res = res_hu_conv;
                }
        }