We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db37634 commit c317cbbCopy full SHA for c317cbb
src/webdriver/commands/xdrpc_command.cc
@@ -38,6 +38,13 @@ void XDRPCCommand::ExecutePost(Response* const response) {
38
std::string matched_route;
39
AbstractCommandCreator* cmdCreator =
40
Server::GetInstance()->GetRouteTable().GetRouteForURL(path, &matched_route);
41
+ if (NULL == cmdCreator)
42
+ {
43
+ response->SetError(new Error(
44
+ kBadRequest, "no route for url: " + path));
45
+ return;
46
+ }
47
+
48
Command* command = cmdCreator->create(path_segments, parameters);
49
50
Server::GetInstance()->DispatchCommand(
0 commit comments