Fixing issue with app reactivation - temporary fix until ONOS-6977 is addressed.
Change-Id: I13bcb6935839aab1cb09035124edc7d7b293fa41
diff --git a/core/store/dist/src/main/java/org/onosproject/store/app/DistributedApplicationStore.java b/core/store/dist/src/main/java/org/onosproject/store/app/DistributedApplicationStore.java
index 0931aa8..21450c0 100644
--- a/core/store/dist/src/main/java/org/onosproject/store/app/DistributedApplicationStore.java
+++ b/core/store/dist/src/main/java/org/onosproject/store/app/DistributedApplicationStore.java
@@ -364,6 +364,7 @@
(k, v) -> new InternalApplicationHolder(
v.app(), ACTIVATED, v.permissions()));
appActivationTopic.publish(vAppHolder.value().app());
+ appActivationTopic.publish(null); // FIXME: Once ONOS-6977 is fixed
}
}
@@ -439,10 +440,12 @@
private class AppActivator implements Consumer<Application> {
@Override
public void accept(Application app) {
- String appName = app.id().name();
- installAppIfNeeded(app);
- setActive(appName);
- notifyDelegate(new ApplicationEvent(APP_ACTIVATED, app));
+ if (app != null) { // FIXME: Once ONOS-6977 is fixed
+ String appName = app.id().name();
+ installAppIfNeeded(app);
+ setActive(appName);
+ notifyDelegate(new ApplicationEvent(APP_ACTIVATED, app));
+ }
}
}