X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fldk%2Fstructs%2FInvoice.java;fp=src%2Fmain%2Fjava%2Forg%2Fldk%2Fstructs%2FInvoice.java;h=e848a21837f9c1b0fb191171cfcceeb5408e37b0;hb=9d146759e11191b55130be7a1b6988d3f289a168;hp=e162d340d5d467490b3e9a402c805286c0a56ac2;hpb=b9716bc7ee492882e4643c9365971fef3761989f;p=ldk-java diff --git a/src/main/java/org/ldk/structs/Invoice.java b/src/main/java/org/ldk/structs/Invoice.java index e162d340..e848a218 100644 --- a/src/main/java/org/ldk/structs/Invoice.java +++ b/src/main/java/org/ldk/structs/Invoice.java @@ -54,7 +54,7 @@ public class Invoice extends CommonBase { if (ret < 1024) { return null; } SignedRawInvoice ret_hu_conv = new SignedRawInvoice(null, ret); ret_hu_conv.ptrs_to.add(this); - this.ptrs_to.add(this); + ; return ret_hu_conv; } @@ -94,7 +94,6 @@ public class Invoice extends CommonBase { long ret = bindings.Invoice_from_signed(signed_invoice == null ? 0 : signed_invoice.ptr & ~1); if (ret < 1024) { return null; } Result_InvoiceSemanticErrorZ ret_hu_conv = Result_InvoiceSemanticErrorZ.constr_from_ptr(ret); - ret_hu_conv.ptrs_to.add(signed_invoice); return ret_hu_conv; }