Skip to content

Commit

Permalink
0005770: fix case of 1 engine exists and no engine name requested
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed May 8, 2023
1 parent 8c18a34 commit 7c1adeb
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -140,6 +140,8 @@ protected ServerSymmetricEngine findEngine(HttpServletRequest req) {
if (holder != null) {
if (engineName != null) {
engine = holder.getEngines().get(engineName);
} else if (holder.getEngineCount() == 1) {
engine = holder.getEngines().values().iterator().next();
}
}
return engine;
Expand Down

0 comments on commit 7c1adeb

Please sign in to comment.