null check

This commit is contained in:
2016-02-18 08:33:39 +01:00
parent 9a4daa2a32
commit 21a4cec705
2 changed files with 10 additions and 6 deletions
@@ -183,7 +183,7 @@ public class FolderPreviewPanel extends JPanel {
int cols = width / CELL_WIDTH;
int rows = (int) Math.ceil(items.size() / (float) cols);
int height = rows * CELL_HEIGHT;
return (new Dimension(width, height));
return new Dimension(width, height);
}
@Override