Implemented: Ignore dropping of null on StoneTrays

git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@89 72836036-5685-4462-b002-a69064685172
This commit is contained in:
Jannis Harder 2011-05-03 19:06:15 +02:00
parent 7ef7a4ce21
commit 760f914494

View file

@ -67,8 +67,10 @@ public class StoneTray<E extends Sizeable> implements
* {@link Position} to put the object * {@link Position} to put the object
*/ */
public void drop(E object, Position position) { public void drop(E object, Position position) {
if (object != null) {
drop(object, position, null); drop(object, position, null);
} }
}
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
private void drop(E object, Position position, Direction direction) { private void drop(E object, Position position, Direction direction) {