mirror of
https://github.com/oxen-io/lokinet
synced 2023-12-14 06:53:00 +01:00
check for nullptr
This commit is contained in:
parent
90a4f90ee6
commit
3dd466629b
1 changed files with 2 additions and 0 deletions
|
@ -679,6 +679,8 @@ namespace llarp
|
|||
Key_t t(target.data());
|
||||
std::set< Key_t > found;
|
||||
// TODO: also load from nodedb
|
||||
if(!nodes)
|
||||
return false;
|
||||
size_t nodeCount = nodes->Size();
|
||||
if(nodeCount == 0)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue