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