mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 15:49:24 +02:00
Merge pull request #1798 from ZappoMan/master
check against NULL node from nodeWithUUID()
This commit is contained in:
commit
685f9ebb5b
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ bool JurisdictionSender::process() {
|
||||||
_nodesRequestingJurisdictions.pop();
|
_nodesRequestingJurisdictions.pop();
|
||||||
SharedNodePointer node = NodeList::getInstance()->nodeWithUUID(nodeUUID);
|
SharedNodePointer node = NodeList::getInstance()->nodeWithUUID(nodeUUID);
|
||||||
|
|
||||||
if (node->getActiveSocket() != NULL) {
|
if (node && node->getActiveSocket() != NULL) {
|
||||||
const HifiSockAddr* nodeAddress = node->getActiveSocket();
|
const HifiSockAddr* nodeAddress = node->getActiveSocket();
|
||||||
_packetSender.queuePacketForSending(*nodeAddress, QByteArray(reinterpret_cast<char *>(bufferOut), sizeOut));
|
_packetSender.queuePacketForSending(*nodeAddress, QByteArray(reinterpret_cast<char *>(bufferOut), sizeOut));
|
||||||
nodeCount++;
|
nodeCount++;
|
||||||
|
|
Loading…
Reference in a new issue