[Java] Update auto-generated Java structs
[ldk-java] / src / main / java / org / ldk / structs / Description.java
index ce97c06a65aa653a37bd62b8bfecac3894103a06..8d7762d650ec86f9ea1c7c37eb123f15535d26c0 100644 (file)
@@ -37,7 +37,7 @@ public class Description extends CommonBase {
                Reference.reachabilityFence(this);
                if (ret >= 0 && ret <= 4096) { return null; }
                org.ldk.structs.Description ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Description(null, ret); }
-               ret_hu_conv.ptrs_to.add(this);
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(this); };
                return ret_hu_conv;
        }
 
@@ -62,7 +62,7 @@ public class Description extends CommonBase {
                boolean ret = bindings.Description_eq(this.ptr, b == null ? 0 : b.ptr);
                Reference.reachabilityFence(this);
                Reference.reachabilityFence(b);
-               this.ptrs_to.add(b);
+               if (this != null) { this.ptrs_to.add(b); };
                return ret;
        }
 
@@ -90,7 +90,7 @@ public class Description extends CommonBase {
        public String into_inner() {
                String ret = bindings.Description_into_inner(this.ptr);
                Reference.reachabilityFence(this);
-               this.ptrs_to.add(this);
+               if (this != null) { this.ptrs_to.add(this); };
                return ret;
        }