diff --git a/apps/flutter_parent/lib/utils/common_widgets/web_view/web_content_interactor.dart b/apps/flutter_parent/lib/utils/common_widgets/web_view/web_content_interactor.dart index 93aaec8122..58c39f237c 100644 --- a/apps/flutter_parent/lib/utils/common_widgets/web_view/web_content_interactor.dart +++ b/apps/flutter_parent/lib/utils/common_widgets/web_view/web_content_interactor.dart @@ -28,7 +28,8 @@ class WebContentInteractor { } Future getAuthUrl(String targetUrl) async { - if (targetUrl.contains(ApiPrefs.getDomain()!)) { + final domain = ApiPrefs.getDomain(); + if (domain != null && targetUrl.contains(domain)) { return _authUrl(targetUrl); } else { return targetUrl;