aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2016-11-13 16:52:43 -0300
committerdequis <dx@dxzone.com.ar>2016-11-13 16:52:43 -0300
commit701ab8129ba9ea64f569daedca9a8603abad740f (patch)
treed0a42f35c18b218eec468588a2c508d805214cf0
parentfca468311f1fd9880ed2ae4991b2ecc261fd34d5 (diff)
imcb_file_send_start: handle ft attempts from non-existing users
-rw-r--r--protocols/bee_ft.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/bee_ft.c b/protocols/bee_ft.c
index 27fd4eac..916b2e88 100644
--- a/protocols/bee_ft.c
+++ b/protocols/bee_ft.c
@@ -30,7 +30,7 @@ file_transfer_t *imcb_file_send_start(struct im_connection *ic, char *handle, ch
bee_t *bee = ic->bee;
bee_user_t *bu = bee_user_by_handle(bee, ic, handle);
- if (bee->ui->ft_in_start) {
+ if (bee->ui->ft_in_start && bu) {
return bee->ui->ft_in_start(bee, bu, file_name, file_size);
} else {
return NULL;