mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-25 23:36:16 +02:00
Add forgotten null check
This commit is contained in:
parent
470e27ce80
commit
b3ed32d0fd
1 changed files with 2 additions and 1 deletions
|
@ -648,7 +648,8 @@ std::vector<std::string> AttrCursor::getListOfStrings()
|
|||
for (auto & elem : v.listItems())
|
||||
res.push_back(std::string(root->state.forceStringNoCtx(*elem)));
|
||||
|
||||
cachedValue = {root->db->setListOfStrings(getKey(), res), res};
|
||||
if (root->db)
|
||||
cachedValue = {root->db->setListOfStrings(getKey(), res), res};
|
||||
|
||||
return res;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue