Add null handling on cache
[nonrtric/plt/rappmanager.git] / rapp-manager-models / src / main / java / com / oransc / rappmanager / models / cache / RappCacheService.java
index d81dd71..cdc42c6 100755 (executable)
@@ -37,7 +37,7 @@ public class RappCacheService {
 
     public Collection<Rapp> getAllRapp() {
         Cache cache = cacheManager.getCache(RAPP_CACHE);
-        if (cache != null) {
+        if(cache != null) {
             Map<String, Rapp> nativeCache = (Map<String, Rapp>) cache.getNativeCache();
             return nativeCache.values();
         }