Ray Milkey
Committed by Gerrit Code Review

Fix problem with apps disappearing after cluster restart

Change-Id: I5d7d6b86677fc5deb8d576e3e5b107c8c4c763e5
...@@ -198,7 +198,10 @@ public class GossipApplicationStore extends ApplicationArchive ...@@ -198,7 +198,10 @@ public class GossipApplicationStore extends ApplicationArchive
198 // Directly return if app already exists 198 // Directly return if app already exists
199 ApplicationId appId = getId(appName); 199 ApplicationId appId = getId(appName);
200 if (appId != null) { 200 if (appId != null) {
201 - return getApplication(appId); 201 + Application application = getApplication(appId);
202 + if (application != null) {
203 + return application;
204 + }
202 } 205 }
203 206
204 ApplicationDescription appDesc = getApplicationDescription(appName); 207 ApplicationDescription appDesc = getApplicationDescription(appName);
......