Skip to content

Commit

Permalink
More unit test troubleshooting (tbs)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamescowens committed Jan 17, 2025
1 parent 52bb092 commit 64cc435
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/gridcoin/project.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,15 @@ bool WhitelistSnapshot::Populated() const

bool WhitelistSnapshot::Contains(const std::string& name) const
{
if (name.empty() || m_projects->empty()) {
if (m_projects == nullptr) {
return false;
}

if (name.empty()) {
return false;
}

if (m_projects->empty()) {
return false;
}

Expand Down

0 comments on commit 64cc435

Please sign in to comment.