Debugger: Fixed null reference crash when source file was not found on the disk (CC65 integration)
This commit is contained in:
parent
0a2d019aba
commit
1e98209941
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ namespace Mesen.GUI.Debugger
|
|||
LineInfo line;
|
||||
if(_lines.TryGetValue(referenceId, out line)) {
|
||||
string lineContent = "";
|
||||
if(_files.TryGetValue(line.FileID, out file) && file.Data.Length > line.LineNumber) {
|
||||
if(_files.TryGetValue(line.FileID, out file) && file.Data != null && file.Data.Length > line.LineNumber) {
|
||||
lineContent = file.Data[line.LineNumber];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue