[Java] Update auto-generated Java bindings
[ldk-java] / src / main / java / org / ldk / structs / ShutdownScript.java
index 3934068a44357ccf1ed5568a527af12e0a755d17..3e24b083b386873148792bc09704784ac5f8117a 100644 (file)
@@ -36,7 +36,7 @@ public class ShutdownScript extends CommonBase {
                Reference.reachabilityFence(this);
                if (ret >= 0 && ret <= 4096) { return null; }
                org.ldk.structs.ShutdownScript ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ShutdownScript(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;
        }
 
@@ -68,7 +68,7 @@ public class ShutdownScript extends CommonBase {
                Reference.reachabilityFence(pubkey_hash);
                if (ret >= 0 && ret <= 4096) { return null; }
                org.ldk.structs.ShutdownScript ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ShutdownScript(null, 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;
        }
 
@@ -80,7 +80,7 @@ public class ShutdownScript extends CommonBase {
                Reference.reachabilityFence(script_hash);
                if (ret >= 0 && ret <= 4096) { return null; }
                org.ldk.structs.ShutdownScript ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ShutdownScript(null, 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;
        }
 
@@ -134,7 +134,7 @@ public class ShutdownScript extends CommonBase {
                boolean ret = bindings.ShutdownScript_is_compatible(this.ptr, features == null ? 0 : features.ptr & ~1);
                Reference.reachabilityFence(this);
                Reference.reachabilityFence(features);
-               this.ptrs_to.add(features);
+               if (this != null) { this.ptrs_to.add(features); };
                return ret;
        }