control: Add enhanced support for loading of sessions
[deliverable/tracecompass.git] / lttng / org.eclipse.tracecompass.lttng2.control.ui / src / org / eclipse / tracecompass / internal / lttng2 / control / ui / views / handlers / NewConnectionHandler.java
index 0a81d7b3d824e775bd5a992afbe7bbf0ea58b085..368e86fc99b2ff875223c15b9f6c8be2ec404779 100644 (file)
@@ -80,10 +80,10 @@ public class NewConnectionHandler extends BaseControlViewHandler {
         IRemoteConnection connection = getConnection(event.getParameters());
         if (connection != null) {
             fLock.lock();
-            if (fRoot == null) {
-                return null;
-            }
             try {
+                if (fRoot == null) {
+                    return null;
+                }
                 // successful creation of host
                 TargetNodeComponent node = null;
                 if (!fRoot.containsChild(connection.getName())) {
This page took 0.024263 seconds and 5 git commands to generate.