Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2015-08-05 17:56:23 +0000
committerslewis2015-08-05 17:56:23 +0000
commit009010a251d698b98bb019fceb32d2493a0acdaf (patch)
tree71e9e9720facca4bdd8f3dcecfb8deb487489992
parent3fdc25508ef15f1c4d93b209ac74eff8024fc8ff (diff)
downloadorg.eclipse.ecf-009010a251d698b98bb019fceb32d2493a0acdaf.tar.gz
org.eclipse.ecf-009010a251d698b98bb019fceb32d2493a0acdaf.tar.xz
org.eclipse.ecf-009010a251d698b98bb019fceb32d2493a0acdaf.zip
Added more protection against shutdown in DebugRemoteServiceAdmin
-rw-r--r--osgi/bundles/org.eclipse.ecf.osgi.services.remoteserviceadmin/src/org/eclipse/ecf/osgi/services/remoteserviceadmin/DebugRemoteServiceAdminListener.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/osgi/bundles/org.eclipse.ecf.osgi.services.remoteserviceadmin/src/org/eclipse/ecf/osgi/services/remoteserviceadmin/DebugRemoteServiceAdminListener.java b/osgi/bundles/org.eclipse.ecf.osgi.services.remoteserviceadmin/src/org/eclipse/ecf/osgi/services/remoteserviceadmin/DebugRemoteServiceAdminListener.java
index d21f401d8..82a35ddf5 100644
--- a/osgi/bundles/org.eclipse.ecf.osgi.services.remoteserviceadmin/src/org/eclipse/ecf/osgi/services/remoteserviceadmin/DebugRemoteServiceAdminListener.java
+++ b/osgi/bundles/org.eclipse.ecf.osgi.services.remoteserviceadmin/src/org/eclipse/ecf/osgi/services/remoteserviceadmin/DebugRemoteServiceAdminListener.java
@@ -169,10 +169,12 @@ public class DebugRemoteServiceAdminListener implements
protected void writeEndpoint(EndpointDescription endpointDescription) {
try {
- this.writer.println("--Endpoint Description---"); //$NON-NLS-1$
- this.edWriter.writeEndpointDescription(this.writer,
- endpointDescription);
- this.writer.println("---End Endpoint Description"); //$NON-NLS-1$
+ if (endpointDescription != null) {
+ this.writer.println("--Endpoint Description---"); //$NON-NLS-1$
+ this.edWriter.writeEndpointDescription(this.writer,
+ endpointDescription);
+ this.writer.println("---End Endpoint Description"); //$NON-NLS-1$
+ }
} catch (Exception e) {
LogUtility
.logError(

Back to the top