Skip to content

Commit

Permalink
ZCS-11938 NPE for tag/contact/appointment delete action
Browse files Browse the repository at this point in the history
  • Loading branch information
RakeshAMore committed Aug 16, 2022
1 parent 3ccddad commit 5af84ce
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion store/src/java/com/zimbra/cs/mailbox/Mailbox.java
Original file line number Diff line number Diff line change
Expand Up @@ -9999,7 +9999,11 @@ protected void endTransaction(boolean success) throws ServiceException {
if (deletes.blobs != null) {
// delete any blobs associated with items deleted from db/index
for (MailboxBlob blob : deletes.blobs) {
StoreManager sm = StoreManager.getReaderSMInstance(blob.getLocator());
StoreManager sm = StoreManager.getInstance();
// if blob is not null then pull respective SM instance
if (blob != null) {
sm = StoreManager.getReaderSMInstance(blob.getLocator());
}
sm.quietDelete(blob);
}
}
Expand Down

0 comments on commit 5af84ce

Please sign in to comment.