mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 14:22:05 +01:00
Fix NPE in EntityCapsManager
persistentCache may be null.
This commit is contained in:
parent
92c76d1023
commit
d389b4db20
1 changed files with 1 additions and 1 deletions
|
@ -199,7 +199,7 @@ public class EntityCapsManager extends Manager {
|
|||
DiscoverInfo info = CAPS_CACHE.get(nodeVer);
|
||||
|
||||
// If it was not in CAPS_CACHE, try to retrieve the information from persistentCache
|
||||
if (info == null) {
|
||||
if (info == null && persistentCache != null) {
|
||||
info = persistentCache.lookup(nodeVer);
|
||||
// Promote the information to CAPS_CACHE if one was found
|
||||
if (info != null) {
|
||||
|
|
Loading…
Reference in a new issue