diff --git a/lib-artnet/.settings/language.settings.xml b/lib-artnet/.settings/language.settings.xml index c2e9d316b..30a4377b4 100644 --- a/lib-artnet/.settings/language.settings.xml +++ b/lib-artnet/.settings/language.settings.xml @@ -5,7 +5,7 @@ - + @@ -17,7 +17,7 @@ - + @@ -26,7 +26,7 @@ - + diff --git a/lib-artnet/src/node/artnetnodehandlepoll.cpp b/lib-artnet/src/node/artnetnodehandlepoll.cpp index 2e630d53e..28360a1cc 100644 --- a/lib-artnet/src/node/artnetnodehandlepoll.cpp +++ b/lib-artnet/src/node/artnetnodehandlepoll.cpp @@ -130,9 +130,11 @@ void ArtNetNode::SendPollRelply(const uint32_t nBindIndex, const uint32_t nDesti ProcessPollRelply(nPortIndex, nPortsInput, nPortsOutput); - const auto nRefreshRate = m_pLightSet->GetRefreshRate(); - m_ArtPollReply.RefreshRateLo = static_cast(nRefreshRate); - m_ArtPollReply.RefreshRateHi = static_cast(nRefreshRate >> 8); + if (__builtin_expect((m_pLightSet != nullptr), 1)) { + const auto nRefreshRate = m_pLightSet->GetRefreshRate(); + m_ArtPollReply.RefreshRateLo = static_cast(nRefreshRate); + m_ArtPollReply.RefreshRateHi = static_cast(nRefreshRate >> 8); + } m_ArtPollReply.NumPortsLo = static_cast(std::max(nPortsInput, nPortsOutput));