diff --git a/interfaces/kits/ani/webview/src/webviewcontroller/ani_webview_controller.cpp b/interfaces/kits/ani/webview/src/webviewcontroller/ani_webview_controller.cpp index 9033f11a94a3c38e9ec3f8854fdb66b7bf237024..610cb1a4381bd44833456cdb176c1325b52b4d81 100644 --- a/interfaces/kits/ani/webview/src/webviewcontroller/ani_webview_controller.cpp +++ b/interfaces/kits/ani/webview/src/webviewcontroller/ani_webview_controller.cpp @@ -118,7 +118,7 @@ struct SnapshotOptions { bool ParsePrepareUrl(ani_env* env, ani_ref urlObj, std::string& url) { - if (AniParseUtils::ParseString(env, urlObj, url)) { + if (!AniParseUtils::ParseString(env, urlObj, url)) { WVLOG_E("urlObj convert to string failed"); return false; }