Commit f71e95d7 authored by Dominik Charousset's avatar Dominik Charousset

Fix null-pointer check, close #1177

parent 8d09c7ea
...@@ -78,8 +78,8 @@ behavior pong(event_based_actor* self, suite_state_ptr ssp) { ...@@ -78,8 +78,8 @@ behavior pong(event_based_actor* self, suite_state_ptr ssp) {
behavior peer_fun(broker* self, connection_handle hdl, const actor& buddy) { behavior peer_fun(broker* self, connection_handle hdl, const actor& buddy) {
CAF_MESSAGE("peer_fun called"); CAF_MESSAGE("peer_fun called");
CAF_REQUIRE(self != nullptr);
CAF_REQUIRE(self->subtype() == resumable::io_actor); CAF_REQUIRE(self->subtype() == resumable::io_actor);
CAF_CHECK(self != nullptr);
self->monitor(buddy); self->monitor(buddy);
self->set_down_handler([self](down_msg& dm) { self->set_down_handler([self](down_msg& dm) {
// Stop if buddy is done. // Stop if buddy is done.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment