Added minimum length check to 'DW' parseing, fixes indexoutofboundsexception

This commit is contained in:
Hayden Kroepfl 2018-01-01 05:17:37 -07:00
parent b21e33601e
commit 34178016b1

View File

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