1
1
Fork 0
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:
Jeff Becker 2018-11-19 12:14:35 -05:00
parent 90a4f90ee6
commit 3dd466629b
No known key found for this signature in database
GPG key ID: F357B3B42F6F9B05

View file

@ -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)
{