mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-04-20 11:06:46 +00:00
Added minimum length check to 'DW' parseing, fixes indexoutofboundsexception
This commit is contained in:
parent
b21e33601e
commit
34178016b1
@ -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 {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user