1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

StandaloneFilterWindow: Avoid null pointer dereference when displays array is empty

This commit is contained in:
reuk 2024-10-17 13:01:46 +01:00
parent 88e544a085
commit 420922253f
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C

View file

@ -774,6 +774,9 @@ public:
const auto& displays = Desktop::getInstance().getDisplays();
if (displays.displays.isEmpty())
return { width, height };
if (auto* props = pluginHolder->settings.get())
{
constexpr int defaultValue = -100;