StandaloneFilterWindow not checking for null editor during inputMutedChanged?


#1

I’m working on a synth, no editor at the moment while I concentrate on the engine fundamentals. My AudioProcessor.hasEditor() returns false, and createEditor() returns nullptr. When I debug the standalone build Visual Studio 2017, it crashes on startup. It looks like line 827 of juce_StandaloneFilterWindow.h is where the trouble starts, it’s trying to get the width and height from an editor that’s null.

Is there something I’m doing wrong, or should there be a null check there?

Juce 5.3.1 on Windows 10 x64.


#2

Standalone would require a UI, so it’d expect createEditor() to return a valid pointer.

Create an empty Editor.

Rail


#3

That did the trick, thanks!