Skip to content

Commit

Permalink
fts-backend-solr: 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 committed Sep 19, 2016
1 parent f2496be commit 768ac0a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/plugins/fts-solr/fts-backend-solr.c
Expand Up @@ -424,6 +424,8 @@ fts_backend_solr_update_set_mailbox(struct fts_backend_update_context *_ctx,
const char *box_guid;

if (ctx->prev_uid != 0) {
i_assert(ctx->cur_box != NULL);

/* flush solr between mailboxes, so we don't wrongly update
last_uid before we know it has succeeded */
if (fts_backed_solr_build_flush(ctx) < 0)
Expand Down

0 comments on commit 768ac0a

Please sign in to comment.