From 61b24cd1523b4af82c2e908c4ce2bff8117f4d46 Mon Sep 17 00:00:00 2001 From: jules Date: Tue, 11 Jul 2017 12:35:53 +0100 Subject: [PATCH] BLOCKS API: Fix to the littlefoot compiler crashing on some return statements --- .../juce_blocks_basics/littlefoot/juce_LittleFootCompiler.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/juce_blocks_basics/littlefoot/juce_LittleFootCompiler.h b/modules/juce_blocks_basics/littlefoot/juce_LittleFootCompiler.h index 0d0a55b9e2..09b79da4bf 100644 --- a/modules/juce_blocks_basics/littlefoot/juce_LittleFootCompiler.h +++ b/modules/juce_blocks_basics/littlefoot/juce_LittleFootCompiler.h @@ -1559,7 +1559,9 @@ private: StatementPtr simplify (SyntaxTreeBuilder& stb) override { - returnValue = returnValue->simplify (stb); + if (returnValue != nullptr) + returnValue = returnValue->simplify (stb); + return this; }