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
1 changed files with 1 additions and 1 deletions

View File

@ -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) {