[Java] Update auto-generated Java structs
[ldk-java] / src / main / java / org / ldk / structs / SignOrCreationError.java
index d088e97f9524cc3acef5a0eb34c2d3df7069a3da..98930701c09873de05fd54a167f597dbf723d1b5 100644 (file)
@@ -63,7 +63,7 @@ public class SignOrCreationError extends CommonBase {
                Reference.reachabilityFence(this);
                if (ret >= 0 && ret <= 4096) { return null; }
                org.ldk.structs.SignOrCreationError ret_hu_conv = org.ldk.structs.SignOrCreationError.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;
        }
 
@@ -74,7 +74,7 @@ public class SignOrCreationError extends CommonBase {
                long ret = bindings.SignOrCreationError_sign_error();
                if (ret >= 0 && ret <= 4096) { return null; }
                org.ldk.structs.SignOrCreationError ret_hu_conv = org.ldk.structs.SignOrCreationError.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;
        }
 
@@ -86,7 +86,7 @@ public class SignOrCreationError extends CommonBase {
                Reference.reachabilityFence(a);
                if (ret >= 0 && ret <= 4096) { return null; }
                org.ldk.structs.SignOrCreationError ret_hu_conv = org.ldk.structs.SignOrCreationError.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;
        }