Grid Anpassung

This commit is contained in:
2026-04-05 15:29:09 +02:00
parent 9fade19949
commit f035a607e9

View File

@@ -60,6 +60,10 @@ public final class GridSize
{ {
final int rows = Integer.parseInt(parts[0].trim()); final int rows = Integer.parseInt(parts[0].trim());
final int cols = Integer.parseInt(parts[1].trim()); final int cols = Integer.parseInt(parts[1].trim());
if(rows <= 0 || cols <= 0)
{
return null;
}
return new GridSize(rows, cols); return new GridSize(rows, cols);
} }
catch(final NumberFormatException e) catch(final NumberFormatException e)