mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 08:21:32 +02:00
Check ptr
This commit is contained in:
parent
cb64b0353e
commit
ce5bcb8de1
1 changed files with 1 additions and 1 deletions
|
@ -182,7 +182,7 @@ void PacketReceiver::processDatagrams() {
|
||||||
|
|
||||||
auto nodeList = DependencyManager::get<LimitedNodeList>();
|
auto nodeList = DependencyManager::get<LimitedNodeList>();
|
||||||
|
|
||||||
while (nodeList->getNodeSocket().hasPendingDatagrams()) {
|
while (nodeList && nodeList->getNodeSocket().hasPendingDatagrams()) {
|
||||||
// setup a buffer to read the packet into
|
// setup a buffer to read the packet into
|
||||||
int packetSizeWithHeader = nodeList->getNodeSocket().pendingDatagramSize();
|
int packetSizeWithHeader = nodeList->getNodeSocket().pendingDatagramSize();
|
||||||
std::unique_ptr<char> buffer = std::unique_ptr<char>(new char[packetSizeWithHeader]);
|
std::unique_ptr<char> buffer = std::unique_ptr<char>(new char[packetSizeWithHeader]);
|
||||||
|
|
Loading…
Reference in a new issue