Deleting a Roster Item causes a NPE

Description

Steps to reproduce:

  1. Create a roster item for a user; Users -> [username] -> Roster -> "Add new item"

  2. On the newly created item, click the "Delete" icon

Expected results:

  • The roster item is deleted

Actual results:

  • The roster item is deleted

  • TheĀ  admin UI reports a NPE;

java.lang.NullPointerException: Null value is not allowed!

at org.jivesoftware.util.cache.DefaultCache.checkNotNull(DefaultCache.java:737)

at org.jivesoftware.util.cache.DefaultCache.put(DefaultCache.java:148)

at org.jivesoftware.util.cache.DefaultCache.put(DefaultCache.java:62

)at org.jivesoftware.util.cache.CacheWrapper.put(CacheWrapper.java:147)

at org.jivesoftware.util.cache.CacheWrapper.put(CacheWrapper.java:29)

at org.jivesoftware.openfire.pep.PEPServiceManager.getPEPService(PEPServiceManager.java:94)

at org.jivesoftware.openfire.pep.IQPEPHandler.cancelSubscriptionToPEPService(IQPEPHandler.java:503)

at org.jivesoftware.openfire.pep.IQPEPHandler.contactDeleted(IQPEPHandler.java:600)

at org.jivesoftware.openfire.roster.RosterEventDispatcher.contactDeleted(RosterEventDispatcher.java:134)

at org.jivesoftware.openfire.roster.Roster.deleteRosterItem(Roster.java:472)

at org.jivesoftware.openfire.admin.user_002droster_002ddelete_jsp._jspService(user_002droster_002ddelete_jsp.java:178)

Environment

None
Fixed
Your pinned fields
Click on the next to a field label to start pinning.

Assignee

Greg Thomas

Reporter

Greg Thomas