diff --git a/Analyser/Static/Commodore/StaticAnalyser.cpp b/Analyser/Static/Commodore/StaticAnalyser.cpp index f4da89d1e..566f2e380 100644 --- a/Analyser/Static/Commodore/StaticAnalyser.cpp +++ b/Analyser/Static/Commodore/StaticAnalyser.cpp @@ -179,7 +179,7 @@ Analyser::Static::TargetList Analyser::Static::Commodore::GetTargets( string_stream << "LOAD\"" << (is_disk ? "*" : "") << "\"," << device << ","; const auto analysis = analyse(file); - if(!analysis->machine_code_addresses.empty()) { + if(analysis && !analysis->machine_code_addresses.empty()) { string_stream << "1"; const auto disassembly = Analyser::Static::MOS6502::Disassemble(