[Java] Update auto-generated Java structs
[ldk-java] / src / main / java / org / ldk / structs / PositiveTimestamp.java
index 6e7d7add7aeef8185516785cf75f5cf1573c076e..cb2de852cbdd16e5d66b54e35f26fbe53c79fef2 100644 (file)
@@ -34,7 +34,7 @@ public class PositiveTimestamp extends CommonBase {
                boolean ret = bindings.PositiveTimestamp_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;
        }
 
@@ -56,7 +56,7 @@ public class PositiveTimestamp extends CommonBase {
                Reference.reachabilityFence(this);
                if (ret >= 0 && ret <= 4096) { return null; }
                org.ldk.structs.PositiveTimestamp ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.PositiveTimestamp(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;
        }