Skip to content

Commit

Permalink
Emit error in ctr_send_message if receiver is not set.
Browse files Browse the repository at this point in the history
  • Loading branch information
gabordemooij committed Mar 17, 2024
1 parent ee46f11 commit f2b1f98
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions world.c
Original file line number Diff line number Diff line change
Expand Up @@ -1050,6 +1050,9 @@ ctr_object* ctr_send_message(ctr_object* receiverObject, char* message, long vle
ctr_argument* mesgArgument;
ctr_object* result = CtrStdNil;
ctr_object* (*funct)(ctr_object* receiverObject, ctr_argument* argumentList);
if (receiverObject == NULL) {
ctr_print_error("[Error] ctr_send_message: Receiver cannot be NULL.", 1);
}
if (!ctr_internal_tmp_msg) {
ctr_internal_tmp_msg = ctr_build_empty_string();
ctr_internal_tmp_msg->info.sticky = 1;
Expand Down

0 comments on commit f2b1f98

Please sign in to comment.