From b09e7f86417d115ad55a3dffcb45eeefe12c3d42 Mon Sep 17 00:00:00 2001 From: fros4943 Date: Wed, 4 Jul 2007 07:44:13 +0000 Subject: [PATCH] nulll constructor arguments --- tools/cooja/java/se/sics/cooja/Simulation.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/cooja/java/se/sics/cooja/Simulation.java b/tools/cooja/java/se/sics/cooja/Simulation.java index 23fd57824..0a45086ce 100644 --- a/tools/cooja/java/se/sics/cooja/Simulation.java +++ b/tools/cooja/java/se/sics/cooja/Simulation.java @@ -24,7 +24,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: Simulation.java,v 1.13 2007/06/19 09:58:43 fros4943 Exp $ + * $Id: Simulation.java,v 1.14 2007/07/04 07:44:13 fros4943 Exp $ */ package se.sics.cooja; @@ -444,7 +444,7 @@ public class Simulation extends Observable implements Runnable { Class moteClass = myGUI.tryLoadClass(this, Mote.class, element.getText().trim()); - Mote mote = moteClass.getConstructor((Class[]) null).newInstance(); + Mote mote = moteClass.getConstructor((Class[]) null).newInstance((Object[]) null); if (mote.setConfigXML(this, element.getChildren(), visAvailable)) { addMote(mote); } else {