karaf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbono...@apache.org
Subject [33/50] git commit: [KARAF-2098] Fix NPE on the KarafRemoteConsole
Date Wed, 18 Dec 2013 13:09:57 GMT
[KARAF-2098] Fix NPE on the KarafRemoteConsole

git-svn-id: https://svn.apache.org/repos/asf/karaf/eik/trunk@1431471 13f79535-47bb-0310-9956-ffa450edef68


Project: http://git-wip-us.apache.org/repos/asf/karaf-eik/repo
Commit: http://git-wip-us.apache.org/repos/asf/karaf-eik/commit/3f6c3779
Tree: http://git-wip-us.apache.org/repos/asf/karaf-eik/tree/3f6c3779
Diff: http://git-wip-us.apache.org/repos/asf/karaf-eik/diff/3f6c3779

Branch: refs/heads/master
Commit: 3f6c3779ff3bcc33a6da71aff4ed2bd2d2335c64
Parents: 0c8a800
Author: jbonofre <jbonofre@13f79535-47bb-0310-9956-ffa450edef68>
Authored: Thu Jan 10 16:16:32 2013 +0000
Committer: jbonofre <jbonofre@13f79535-47bb-0310-9956-ffa450edef68>
Committed: Thu Jan 10 16:16:32 2013 +0000

----------------------------------------------------------------------
 .../java/org/apache/karaf/eik/ui/console/KarafRemoteConsole.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/karaf-eik/blob/3f6c3779/plugins/org.apache.karaf.eik.ui/src/main/java/org/apache/karaf/eik/ui/console/KarafRemoteConsole.java
----------------------------------------------------------------------
diff --git a/plugins/org.apache.karaf.eik.ui/src/main/java/org/apache/karaf/eik/ui/console/KarafRemoteConsole.java
b/plugins/org.apache.karaf.eik.ui/src/main/java/org/apache/karaf/eik/ui/console/KarafRemoteConsole.java
index 5c2f510..50824c5 100644
--- a/plugins/org.apache.karaf.eik.ui/src/main/java/org/apache/karaf/eik/ui/console/KarafRemoteConsole.java
+++ b/plugins/org.apache.karaf.eik.ui/src/main/java/org/apache/karaf/eik/ui/console/KarafRemoteConsole.java
@@ -232,7 +232,9 @@ public class KarafRemoteConsole extends IOConsole implements IDebugEventSetListe
     protected void dispose() {
         super.dispose();
 
-        DebugPlugin.getDefault().removeDebugEventListener(this);
+        if (DebugPlugin.getDefault() != null) {
+            DebugPlugin.getDefault().removeDebugEventListener(this);
+        }
     }
 
     @Override


Mime
View raw message