wsd: fix missing tile cache check in ClientSession::getCommandValues()

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: I59d0c4863493a02df7a05b98648eb235840f8060
This commit is contained in:
Miklos Vajna 2022-10-25 15:16:02 +02:00 committed by Michael Meeks
parent bcb6dcd9a7
commit 4278b601f6
2 changed files with 1 additions and 1 deletions

View file

@ -1204,7 +1204,7 @@ bool ClientSession::getCommandValues(const char *buffer, int length, const Strin
return sendTextFrameAndLogError("error: cmd=commandvalues kind=syntax");
std::string cmdValues;
if (docBroker->tileCache().getTextStream(TileCache::StreamType::CmdValues, command, cmdValues))
if (docBroker->hasTileCache() && docBroker->tileCache().getTextStream(TileCache::StreamType::CmdValues, command, cmdValues))
return sendTextFrame(cmdValues);
return forwardToChild(std::string(buffer, length), docBroker);