Skip to content

Commit

Permalink
fts-backend-lucene: Check that box is not NULL
Browse files Browse the repository at this point in the history
fts_backend_update_deinit will set box to NULL and call
update_set_mailbox then.
  • Loading branch information
cmouse authored and sirainen committed Sep 19, 2016
1 parent 461e4c7 commit ff3bf63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/fts-lucene/fts-backend-lucene.c
Expand Up @@ -310,7 +310,7 @@ fts_backend_lucene_update_set_mailbox(struct fts_backend_update_context *_ctx,
fts_index_set_last_uid(ctx->box, ctx->last_uid);
ctx->last_uid = 0;
}
if (ctx->first_box_vname == NULL)
if (ctx->first_box_vname == NULL && box != NULL)
ctx->first_box_vname = i_strdup(box->vname);
ctx->box = box;
ctx->last_indexed_uid_set = FALSE;
Expand Down

0 comments on commit ff3bf63

Please sign in to comment.