Update auto-generated bindings
[ldk-java] / src / main / java / org / ldk / structs / PayeePubKey.java
index b6ea267f9c8c82e200f687db201c2715c572a3b1..b1251eb75f51f354eef9bb98aa24104a12f159c6 100644 (file)
@@ -24,7 +24,7 @@ public class PayeePubKey extends CommonBase {
         */
        public PayeePubKey clone() {
                long ret = bindings.PayeePubKey_clone(this.ptr);
-               if (ret < 1024) { return null; }
+               if (ret >= 0 && ret < 1024) { return null; }
                PayeePubKey ret_hu_conv = new PayeePubKey(null, ret);
                ret_hu_conv.ptrs_to.add(this);
                return ret_hu_conv;