[Java] Update auto-generated Java bindings
[ldk-java] / src / main / java / org / ldk / structs / Option_C2Tuple_u64u64ZZ.java
index 863d52b230f84fe53f4f2dc1b7c5ceaa1185e0a4..cd24dca938e14322a042e821298968365b8780f8 100644 (file)
@@ -39,7 +39,7 @@ public class Option_C2Tuple_u64u64ZZ extends CommonBase {
                        super(null, ptr);
                        long some = obj.some;
                        TwoTuple_u64u64Z some_hu_conv = new TwoTuple_u64u64Z(null, some);
-                       some_hu_conv.ptrs_to.add(this);
+                       if (some_hu_conv != null) { some_hu_conv.ptrs_to.add(this); };
                        this.some = some_hu_conv;
                }
        }
@@ -59,7 +59,7 @@ public class Option_C2Tuple_u64u64ZZ extends CommonBase {
                Reference.reachabilityFence(o);
                if (ret >= 0 && ret <= 4096) { return null; }
                org.ldk.structs.Option_C2Tuple_u64u64ZZ ret_hu_conv = org.ldk.structs.Option_C2Tuple_u64u64ZZ.constr_from_ptr(ret);
-               ret_hu_conv.ptrs_to.add(ret_hu_conv);
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(ret_hu_conv); };
                return ret_hu_conv;
        }
 
@@ -70,7 +70,7 @@ public class Option_C2Tuple_u64u64ZZ extends CommonBase {
                long ret = bindings.COption_C2Tuple_u64u64ZZ_none();
                if (ret >= 0 && ret <= 4096) { return null; }
                org.ldk.structs.Option_C2Tuple_u64u64ZZ ret_hu_conv = org.ldk.structs.Option_C2Tuple_u64u64ZZ.constr_from_ptr(ret);
-               ret_hu_conv.ptrs_to.add(ret_hu_conv);
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(ret_hu_conv); };
                return ret_hu_conv;
        }
 
@@ -89,7 +89,7 @@ public class Option_C2Tuple_u64u64ZZ extends CommonBase {
                Reference.reachabilityFence(this);
                if (ret >= 0 && ret <= 4096) { return null; }
                org.ldk.structs.Option_C2Tuple_u64u64ZZ ret_hu_conv = org.ldk.structs.Option_C2Tuple_u64u64ZZ.constr_from_ptr(ret);
-               ret_hu_conv.ptrs_to.add(this);
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(this); };
                return ret_hu_conv;
        }