Update auto-generated bindings to latest upstream
[ldk-java] / src / main / java / org / ldk / structs / DecodeError.java
index 5a7703fcc97e0f77ab5a346067dab6c1c457edd4..198e61d1234569383d5318686899820fe2d82b98 100644 (file)
@@ -4,6 +4,7 @@ import org.ldk.impl.bindings;
 import org.ldk.enums.*;
 import org.ldk.util.*;
 import java.util.Arrays;
+import javax.annotation.Nullable;
 
 
 /**
@@ -23,6 +24,7 @@ public class DecodeError extends CommonBase {
         */
        public DecodeError clone() {
                long ret = bindings.DecodeError_clone(this.ptr);
+               if (ret < 1024) { return null; }
                DecodeError ret_hu_conv = new DecodeError(null, ret);
                ret_hu_conv.ptrs_to.add(this);
                return ret_hu_conv;