]> git.bitcoin.ninja Git - ldk-java/blobdiff - src/main/java/org/ldk/structs/ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ.java
Only handle `null` objects when its allowed
[ldk-java] / src / main / java / org / ldk / structs / ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ.java
index 741f0681a2283d263f80e7ee958927207f07007d..0b7ac8c02cee095af69288c2ed61d12451fd6b75 100644 (file)
@@ -80,7 +80,7 @@ public class ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ extends CommonBase
        /**
         * Creates a new C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ from the contained elements.
         */
-       public static ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ of(OutPoint a, MonitorEvent[] b, byte[] c) {
+       public static ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ of(org.ldk.structs.OutPoint a, MonitorEvent[] b, byte[] c) {
                long ret = bindings.C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_new(a == null ? 0 : a.ptr, b != null ? Arrays.stream(b).mapToLong(b_conv_14 -> b_conv_14.ptr).toArray() : null, InternalUtils.check_arr_len(c, 33));
                Reference.reachabilityFence(a);
                Reference.reachabilityFence(b);
@@ -89,6 +89,7 @@ public class ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ extends CommonBase
                ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ ret_hu_conv = new ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ(null, 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); };
+               for (MonitorEvent b_conv_14: b) { if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(b_conv_14); }; };
                return ret_hu_conv;
        }