summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJackLivio <jack@livio.io>2019-10-08 15:41:35 -0400
committerJackLivio <jack@livio.io>2019-10-08 15:41:35 -0400
commit3f9cc102ca74aac321c39ec242590b6eba506f3f (patch)
tree32cdbbaecba89fd1979f98b360fb6d122bcebdae
parent2b09ea3adf962e25717b6b4cd751173f0aa40d02 (diff)
downloadsdl_core-3f9cc102ca74aac321c39ec242590b6eba506f3f.tar.gz
Replace dcheck in create window
-rw-r--r--src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/create_window_request.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/create_window_request.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/create_window_request.cc
index 21b54b4e9f..7e6df969d3 100644
--- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/create_window_request.cc
+++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/create_window_request.cc
@@ -333,7 +333,10 @@ bool CreateWindowRequest::DoesExceedMaxAllowedWindows(
return false;
});
- DCHECK(find_res != windowTypeSupported->end());
+ if (find_res == windowTypeSupported->end()) {
+ LOG4CXX_WARN(logger_, "Requested Window Type is not supported by the HMI");
+ return false;
+ }
if (get_current_number_of_windows(window_type) + 1 >
(*find_res)[strings::maximum_number_of_windows].asUInt()) {