[Java] Update auto-generated Java structs
[ldk-java] / src / main / java / org / ldk / structs / DecodeError.java
index 3d00c3e77a8bbd2892d25de2a4d940f67df6159f..1fd7d4a33eab5257c3e2bb310749c92acf774ddc 100644 (file)
@@ -34,7 +34,7 @@ public class DecodeError extends CommonBase {
                Reference.reachabilityFence(this);
                if (ret >= 0 && ret <= 4096) { return null; }
                org.ldk.structs.DecodeError ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.DecodeError(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;
        }