Merge pull request #2345 from birarda/master

guard around update to last heard for a NULL matching node
This commit is contained in:
Philip Rosedale 2014-03-17 17:40:02 -07:00
commit 2673aa00f0

View file

@ -267,7 +267,9 @@ void NodeList::processNodeData(const HifiSockAddr& senderSockAddr, const QByteAr
// the node decided not to do anything with this packet
// if it comes from a known source we should keep that node alive
SharedNodePointer matchingNode = sendingNodeForPacket(packet);
matchingNode->setLastHeardMicrostamp(usecTimestampNow());
if (matchingNode) {
matchingNode->setLastHeardMicrostamp(usecTimestampNow());
}
break;
}