1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-26 22:12:05 +01:00

Fix NPE in EntityCapsManager

persistentCache may be null.
This commit is contained in:
Florian Schmaus 2015-03-10 13:21:16 +01:00
parent 92c76d1023
commit d389b4db20

View file

@ -199,7 +199,7 @@ public class EntityCapsManager extends Manager {
DiscoverInfo info = CAPS_CACHE.get(nodeVer); DiscoverInfo info = CAPS_CACHE.get(nodeVer);
// If it was not in CAPS_CACHE, try to retrieve the information from persistentCache // 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); info = persistentCache.lookup(nodeVer);
// Promote the information to CAPS_CACHE if one was found // Promote the information to CAPS_CACHE if one was found
if (info != null) { if (info != null) {