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
commit c7946a6356
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 {