Permalink
Browse files

dragonfly: fix NPE in bug simulator start.

  • Loading branch information...
1 parent 582167d commit 6104bb2d74dec2da6c16dcf57074cb502e74e6ae @kgilmer kgilmer committed Aug 3, 2011
Showing with 5 additions and 5 deletions.
  1. +5 −5 com.buglabs.bug.simulator/com/buglabs/bug/simulator/Activator.java
@@ -199,13 +199,13 @@ public void run(Map<String, Object> services) {
// Module Controller *************************************
try {
controllerServer = Server.startServer(BUG_SIMULATOR_CONTROLLER_PORT, logService, context);
+
+ Dictionary<String, String> d = new Hashtable<String, String>();
+ d.put("bug.base.version", "2.0");
+ baseControlReg = context.registerService(IBUG20BaseControl.class.getName(), controllerServer, d);
} catch (BindException e) {
logService.log(LogService.LOG_ERROR, "BUG Simulator Controller unable to start. Another process is using it's port: " + BUG_SIMULATOR_CONTROLLER_PORT);
- }
-
- Dictionary<String, String> d = new Hashtable<String, String>();
- d.put("bug.base.version", "2.0");
- baseControlReg = context.registerService(IBUG20BaseControl.class.getName(), controllerServer, d);
+ }
shellThread = new ShellIOThread(Integer.parseInt(System.getProperty("org.knapsack.shell.port")));
shellThread.start();

0 comments on commit 6104bb2

Please sign in to comment.