mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-11 15:49:38 +00:00
Avoid invalid accesses.
This commit is contained in:
parent
65a118d1f3
commit
e7f0eb6746
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user