SL-12486 Size check fix

master
andreykproductengine 2020-01-08 22:56:10 +02:00
parent ae013b5c82
commit c090cd32b8
2 changed files with 2 additions and 2 deletions

View File

@ -491,7 +491,7 @@ public:
virtual bool hasCredentialMap(const std::string& storage,
const std::string& grid)=0;
// returns true im map is empty or does not exist
// returns true if map is empty or does not exist
virtual bool emptyCredentialMap(const std::string& storage,
const std::string& grid)=0;

View File

@ -1674,7 +1674,7 @@ bool LLSecAPIBasicHandler::emptyCredentialMap(const std::string& storage, const
LLSD credential = getProtectedData(storage, grid);
return !credential.isMap() || credential.emptyMap();
return !credential.isMap() || credential.size() == 0;
}
// Load map of credentials from specified credential store, given the grid