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
// Directly return if app already exists
ApplicationId appId = getId(appName);
if (appId != null) {
return getApplication(appId);
Application application = getApplication(appId);
if (application != null) {
return application;
}
}
ApplicationDescription appDesc = getApplicationDescription(appName);
......