diff --git a/Analyser/Static/Commodore/StaticAnalyser.cpp b/Analyser/Static/Commodore/StaticAnalyser.cpp index e2bc46adb..f07734888 100644 --- a/Analyser/Static/Commodore/StaticAnalyser.cpp +++ b/Analyser/Static/Commodore/StaticAnalyser.cpp @@ -80,6 +80,11 @@ std::optional analyse(const File &file) { return analysis; } + // Don't form an opinion if file is empty. + if(file.data.empty()) { + return std::nullopt; + } + uint16_t line_address = file.starting_address; int previous_line_number = -1;