Merge pull request #87 from ChartreuseK/bug-81

Added minimum length check to 'DW' parsing
This commit is contained in:
Simon Fortier
2018-01-01 14:36:38 -05:00
committed by GitHub

View File

@@ -132,7 +132,7 @@ public class Assembler {
//System.out.println(line);
if (line.substring(0, 2).toUpperCase().equals("DW")) {
if (line.length() >= 2 && line.substring(0, 2).toUpperCase().equals("DW")) {
try {