Running current master on Ignite, we see lots of these
This appears to be a simple case where a null-check is omitted. I've added some checks (see this PR: https://github.com/igniterealtime/Openfire/pull/286 ).
The check should be verified before closing this issue (I did not attempt to reproduce the issue).
Fixed by #427