[C#] Update auto-generated bindings to LDK 0.0.123
[ldk-java] / c_sharp / src / org / ldk / structs / Result_NonePeerHandleErrorZ.cs
index c1efa8e887b0a6150e16b81fa6de8367cd882ffb..41960438bc46caab073363acc48972cdd6fbe59c 100644 (file)
@@ -47,7 +47,7 @@ public class Result_NonePeerHandleErrorZ : CommonBase {
         * Creates a new CResult_NonePeerHandleErrorZ in the error state.
         */
        public static Result_NonePeerHandleErrorZ err(org.ldk.structs.PeerHandleError e) {
-               long ret = bindings.CResult_NonePeerHandleErrorZ_err(e == null ? 0 : e.ptr);
+               long ret = bindings.CResult_NonePeerHandleErrorZ_err(e.ptr);
                GC.KeepAlive(e);
                if (ret >= 0 && ret <= 4096) { return null; }
                Result_NonePeerHandleErrorZ ret_hu_conv = Result_NonePeerHandleErrorZ.constr_from_ptr(ret);