Merge branch 'NixOS:master' into debug-exploratory-PR

This commit is contained in:
Ben Burdette
2022-05-05 13:54:20 -06:00
committed by GitHub
3 changed files with 33 additions and 26 deletions
+2 -1
View File
@@ -673,7 +673,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;
}