mirror of
				https://github.com/simon987/Much-Assembly-Required.git
				synced 2025-11-03 17:46:53 +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);
 | 
			
		||||
 | 
			
		||||
        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