From 760f914494d2cd8552a2f4408fbceb38ac7027ba Mon Sep 17 00:00:00 2001 From: Jannis Harder Date: Tue, 3 May 2011 19:06:15 +0200 Subject: Implemented: Ignore dropping of null on StoneTrays git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@89 72836036-5685-4462-b002-a69064685172 --- src/jrummikub/model/StoneTray.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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 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") -- cgit v1.2.3