diff options
author | Jannis Harder <harder@informatik.uni-luebeck.de> | 2011-05-03 19:06:15 +0200 |
---|---|---|
committer | Jannis Harder <harder@informatik.uni-luebeck.de> | 2011-05-03 19:06:15 +0200 |
commit | 760f914494d2cd8552a2f4408fbceb38ac7027ba (patch) | |
tree | 21426037a9beba54935cd3190d2f835c6af7ee8b /src/jrummikub | |
parent | 7ef7a4ce21d51b8c07354e1c5ec26a17eb3dc70a (diff) | |
download | JRummikub-760f914494d2cd8552a2f4408fbceb38ac7027ba.tar JRummikub-760f914494d2cd8552a2f4408fbceb38ac7027ba.zip |
Implemented: Ignore dropping of null on StoneTrays
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@89 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'src/jrummikub')
-rw-r--r-- | src/jrummikub/model/StoneTray.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/jrummikub/model/StoneTray.java b/src/jrummikub/model/StoneTray.java index f215164..176c5f0 100644 --- a/src/jrummikub/model/StoneTray.java +++ b/src/jrummikub/model/StoneTray.java @@ -67,7 +67,9 @@ public class StoneTray<E extends Sizeable> implements * {@link Position} to put the object */ public void drop(E object, Position position) { - drop(object, position, null); + if (object != null) { + drop(object, position, null); + } } @SuppressWarnings("unchecked") |