[Java] Update auto-generated Java structs
[ldk-java] / src / main / java / org / ldk / structs / ExpandedKey.java
index 16d1428aaae9e1cc42a8c34e36df0ecd9faf53a6..72e49811aedf39f4ed36c68675c8b42d7d6035cb 100644 (file)
@@ -33,7 +33,7 @@ public class ExpandedKey extends CommonBase {
                Reference.reachabilityFence(key_material);
                if (ret >= 0 && ret <= 4096) { return null; }
                org.ldk.structs.ExpandedKey ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ExpandedKey(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;
        }