diff --git a/Axel/src/de/hs_mannheim/informatik/spreadsheet/Axel.java b/Axel/src/de/hs_mannheim/informatik/spreadsheet/Axel.java index d575548..6ba6703 100644 --- a/Axel/src/de/hs_mannheim/informatik/spreadsheet/Axel.java +++ b/Axel/src/de/hs_mannheim/informatik/spreadsheet/Axel.java @@ -91,7 +91,12 @@ public class Axel { form+=command.charAt(i); } } - spr.put(cell, form); + if((spr.getRow(cell)+1)<=spr.cells.length&&(spr.getCol(cell)+1)<=spr.cells[0].length) { + spr.put(cell, form); + } + else { + System.err.println("Zelle '"+ cell+ "' existiert nicht!"); + } }else if(command.matches("stop")){ break; }else if(command.startsWith("save")){