check for nullptr

pull/67/head
Jeff Becker 6 years ago
parent 90a4f90ee6
commit 3dd466629b
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -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…
Cancel
Save