Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

dragonfly: fix NPE in bug simulator start.

  • Loading branch information...
commit 6104bb2d74dec2da6c16dcf57074cb502e74e6ae 1 parent 582167d
@kgilmer kgilmer authored
View
10 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();
Please sign in to comment.
Something went wrong with that request. Please try again.