Commits

shemnon committed 5e56d3e

stop NPE on zero sized deck

Comments (0)

Files changed (1)

src/main/java/com/github/shemnon/deckcontrol/skin/ShelfDeckSkin.java

 
     private void update(boolean animate) {
         // move items to new homes in groups
+        if (items.isEmpty()) return;
+
         left.getChildren().clear();
         center.getChildren().clear();
         right.getChildren().clear();