mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2025-02-01 18:33:25 +00:00
When at end of file (nextAddress is 0), set the offset to the end
of file.
This commit is contained in:
parent
e73e9c0f2d
commit
895685e948
@ -94,6 +94,8 @@ public class ApplesoftTokenizer {
|
||||
nextAddress = AppleUtil.getWordValue(fileData, offset);
|
||||
offset+= 2;
|
||||
if (nextAddress == 0) {
|
||||
// At end of file, ensure we don't try to continue processing...
|
||||
offset = fileData.length;
|
||||
return null;
|
||||
}
|
||||
int lineNumber = AppleUtil.getWordValue(fileData, offset);
|
||||
|
Loading…
x
Reference in New Issue
Block a user