[Java] Update auto-generated bindings to LDK 0.0.123
[ldk-java] / src / main / java / org / ldk / structs / GraphSyncError.java
index 0febba31937885f87bab112c2be02e029c14931e..6f55a704e0452f0a0e407fc1dc9bd0d6b20c50de 100644 (file)
@@ -85,6 +85,7 @@ public class GraphSyncError extends CommonBase {
                if (ret >= 0 && ret <= 4096) { return null; }
                org.ldk.structs.GraphSyncError ret_hu_conv = org.ldk.structs.GraphSyncError.constr_from_ptr(ret);
                if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(ret_hu_conv); };
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(a); };
                return ret_hu_conv;
        }
 
@@ -92,7 +93,7 @@ public class GraphSyncError extends CommonBase {
         * Utility method to constructs a new LightningError-variant GraphSyncError
         */
        public static GraphSyncError lightning_error(org.ldk.structs.LightningError a) {
-               long ret = bindings.GraphSyncError_lightning_error(a == null ? 0 : a.ptr);
+               long ret = bindings.GraphSyncError_lightning_error(a.ptr);
                Reference.reachabilityFence(a);
                if (ret >= 0 && ret <= 4096) { return null; }
                org.ldk.structs.GraphSyncError ret_hu_conv = org.ldk.structs.GraphSyncError.constr_from_ptr(ret);