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:
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);
|
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) {
|
||||||
|
|
Loading…
Reference in a new issue