diff --git a/IDEHelper/Compiler/BfModule.cpp b/IDEHelper/Compiler/BfModule.cpp index e654e534..8a9e3447 100644 --- a/IDEHelper/Compiler/BfModule.cpp +++ b/IDEHelper/Compiler/BfModule.cpp @@ -8014,7 +8014,10 @@ BfTypedValue BfModule::FlushNullConditional(BfTypedValue result, bool ignoreNull auto pendingNullCond = mCurMethodState->mPendingNullConditional; if ((result) && (!ignoreNullable)) - { + { + if (result.mType->IsVar()) + return result; + auto notNullBB = mBfIRBuilder->GetInsertBlock(); //TODO: Make this work, needed for 'void' and such