quick fix crash in parseVoxelStats()

This commit is contained in:
ZappoMan 2013-08-07 11:11:03 -07:00
parent 61560af28f
commit ccf3498ae5

View file

@ -3953,6 +3953,9 @@ int Application::parseVoxelStats(unsigned char* messageData, ssize_t messageLeng
// But, also identify the sender, and keep track of the contained jurisdiction root for this server
Node* voxelServer = NodeList::getInstance()->nodeWithAddress(&senderAddress);
// quick fix for crash... why would voxelServer be NULL?
if (voxelServer) {
uint16_t nodeID = voxelServer->getNodeID();
VoxelPositionSize jurisditionDetails;
@ -3970,7 +3973,7 @@ int Application::parseVoxelStats(unsigned char* messageData, ssize_t messageLeng
}
// store jurisdiction details for later use
_voxelServerJurisdictions[nodeID] = jurisditionDetails;
}
return statsMessageLength;
}