summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2009-06-04 10:14:56 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2009-06-04 10:14:56 +0000
commit4b12a52da52f632dcd4707d755b4d42ec3822b12 (patch)
treebf648b30dcb67780762f7e460c6862e75a4ec4d5
parent5e3f201fc357e8730cc2c2fb7da905b3d0a86ad3 (diff)
downloadATCD-4b12a52da52f632dcd4707d755b4d42ec3822b12.tar.gz
Thu Jun 4 10:14:05 2009 Johnny Willemsen <jwillemsen@remedy.nl>
* ace/Select_Reactor_T.cpp: Only call the notify_handler_ when we have a valid pointer
-rw-r--r--ACE/ChangeLog5
-rw-r--r--ACE/ace/Select_Reactor_T.cpp7
2 files changed, 10 insertions, 2 deletions
diff --git a/ACE/ChangeLog b/ACE/ChangeLog
index ca9fbdb58c7..d5e17c68a79 100644
--- a/ACE/ChangeLog
+++ b/ACE/ChangeLog
@@ -1,3 +1,8 @@
+Thu Jun 4 10:14:05 2009 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * ace/Select_Reactor_T.cpp:
+ Only call the notify_handler_ when we have a valid pointer
+
Thu Jun 4 09:42:05 2009 Johnny Willemsen <jwillemsen@remedy.nl>
* contrib/FaCE/CE_ARGV.h:
diff --git a/ACE/ace/Select_Reactor_T.cpp b/ACE/ace/Select_Reactor_T.cpp
index 57f5f9f36bf..30666cbf11f 100644
--- a/ACE/ace/Select_Reactor_T.cpp
+++ b/ACE/ace/Select_Reactor_T.cpp
@@ -211,8 +211,11 @@ ACE_Select_Reactor_T<ACE_SELECT_REACTOR_TOKEN>::notify (ACE_Event_Handler *eh,
// Pass over both the Event_Handler *and* the mask to allow the
// caller to dictate which Event_Handler method the receiver
// invokes. Note that this call can timeout.
-
- ssize_t const n = this->notify_handler_->notify (eh, mask, timeout);
+ ssize_t n = -1;
+ if (this->notify_handler_)
+ {
+ n = this->notify_handler_->notify (eh, mask, timeout);
+ }
return n == -1 ? -1 : 0;
}