Grid Anpassung
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user