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:
parent
88e544a085
commit
420922253f
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue