Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkaguilar2010-06-24 18:16:52 +0000
committerkaguilar2010-06-24 18:16:52 +0000
commitf4a298a99711d7ee8f8dd836f2336caee4271b2d (patch)
treef019460f68a120a35699f2307ca3a0fbf591d15d /plugins/org.eclipse.osee.ote.ui/src
parent0f65a3a5720a7ae78145eb5271f698f56bc036ce (diff)
downloadorg.eclipse.osee-f4a298a99711d7ee8f8dd836f2336caee4271b2d.tar.gz
org.eclipse.osee-f4a298a99711d7ee8f8dd836f2336caee4271b2d.tar.xz
org.eclipse.osee-f4a298a99711d7ee8f8dd836f2336caee4271b2d.zip
fixed a Null Pointer Exception on disconnect
Diffstat (limited to 'plugins/org.eclipse.osee.ote.ui/src')
-rw-r--r--plugins/org.eclipse.osee.ote.ui/src/org/eclipse/osee/ote/ui/OteRemoteConsole.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/org.eclipse.osee.ote.ui/src/org/eclipse/osee/ote/ui/OteRemoteConsole.java b/plugins/org.eclipse.osee.ote.ui/src/org/eclipse/osee/ote/ui/OteRemoteConsole.java
index 68d077a685d..e4198347b19 100644
--- a/plugins/org.eclipse.osee.ote.ui/src/org/eclipse/osee/ote/ui/OteRemoteConsole.java
+++ b/plugins/org.eclipse.osee.ote.ui/src/org/eclipse/osee/ote/ui/OteRemoteConsole.java
@@ -12,6 +12,7 @@ package org.eclipse.osee.ote.ui;
import java.rmi.RemoteException;
import java.util.logging.Level;
+
import org.eclipse.osee.connection.service.IServiceConnector;
import org.eclipse.osee.framework.jdk.core.util.IConsoleInputListener;
import org.eclipse.osee.framework.logging.OseeLog;
@@ -81,7 +82,9 @@ public class OteRemoteConsole implements IConsoleInputListener, ITestConnectionL
try {
env = event.getEnvironment();
remoteConsole = env.getCommandConsole();
- getOteConsole().addInputListener(this);
+ if (isOteConsoleServiceAvailable()) {
+ getOteConsole().addInputListener(this);
+ }
} catch (RemoteException e) {
OseeLog.log(TestCoreGuiPlugin.class, Level.SEVERE, "exception acquiring remote console", e);
}

Back to the top