You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
814B

  1. diff --git a/modules/juce_events/native/juce_linux_Messaging.cpp b/modules/juce_events/native/juce_linux_Messaging.cpp
  2. index b2eaece..6e17abb 100644
  3. --- a/modules/juce_events/native/juce_linux_Messaging.cpp
  4. +++ b/modules/juce_events/native/juce_linux_Messaging.cpp
  5. @@ -360,8 +360,13 @@ bool MessageManager::postMessageToSystemQueue (MessageManager::MessageBase* cons
  6. if (LinuxErrorHandling::errorOccurred)
  7. return false;
  8. - InternalMessageQueue::getInstanceWithoutCreating()->postMessage (message);
  9. - return true;
  10. + if (InternalMessageQueue* const queue = InternalMessageQueue::getInstanceWithoutCreating())
  11. + {
  12. + queue->postMessage (message);
  13. + return true;
  14. + }
  15. +
  16. + return false;
  17. }
  18. void MessageManager::broadcastMessage (const String& /* value */)