Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorddunne2010-08-27 13:18:28 -0400
committerddunne2010-08-27 13:18:28 -0400
commit373730340d4ab7e2ffe6d9e035d3b16b2ad9f082 (patch)
tree8c6d8fb4b42ee3c076921bb617379e9f9ebdd8e6 /plugins/org.eclipse.osee.framework.messaging.event.res
parent0206b347a1c9a964cec8d5c9a98106dca939ded5 (diff)
downloadorg.eclipse.osee-373730340d4ab7e2ffe6d9e035d3b16b2ad9f082.tar.gz
org.eclipse.osee-373730340d4ab7e2ffe6d9e035d3b16b2ad9f082.tar.xz
org.eclipse.osee-373730340d4ab7e2ffe6d9e035d3b16b2ad9f082.zip
fixed improper null checks for sendRemoteEvent
Diffstat (limited to 'plugins/org.eclipse.osee.framework.messaging.event.res')
-rw-r--r--plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/internal/OseeCoreModelEventServiceImpl.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/internal/OseeCoreModelEventServiceImpl.java b/plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/internal/OseeCoreModelEventServiceImpl.java
index 96dd50a778..787505db3c 100644
--- a/plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/internal/OseeCoreModelEventServiceImpl.java
+++ b/plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/internal/OseeCoreModelEventServiceImpl.java
@@ -54,9 +54,9 @@ public class OseeCoreModelEventServiceImpl implements OseeMessagingStatusCallbac
@Override
public void sendRemoteEvent(RemoteEvent remoteEvent) throws OseeCoreException {
ResMessages resMessage = getResMessageType(remoteEvent);
- if (resMessage != null) {
+ if (resMessage == null) {
System.out.println(String.format("ResEventManager: Unhandled remote event ", remoteEvent));
- } else if (connectionNode != null) {
+ } else if (connectionNode == null) {
System.out.println(String.format(
"ResEventManager: Connection node was null - unable to send remote event [%s] ", resMessage));
} else {

Back to the top