mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-04-19 10:36:43 +00:00
Merge pull request #87 from ChartreuseK/bug-81
Added minimum length check to 'DW' parsing
This commit is contained in:
commit
c7946a6356
@ -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 {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user