From: Mathieu Baudier Date: Wed, 7 Oct 2020 09:16:31 +0000 (+0200) Subject: Make initialisation more robust. X-Git-Tag: argeo-commons-2.1.89~81 X-Git-Url: http://git.argeo.org/?p=lgpl%2Fargeo-commons.git;a=commitdiff_plain;h=dffc0df8766937ad0863d389883cba2ebac835d6 Make initialisation more robust. --- diff --git a/org.argeo.cms.ui/src/org/argeo/cms/web/CmsWebApp.java b/org.argeo.cms.ui/src/org/argeo/cms/web/CmsWebApp.java index 687b54a83..70d3917d4 100644 --- a/org.argeo.cms.ui/src/org/argeo/cms/web/CmsWebApp.java +++ b/org.argeo.cms.ui/src/org/argeo/cms/web/CmsWebApp.java @@ -32,11 +32,14 @@ public class CmsWebApp implements ApplicationConfiguration, CmsAppListener { public void init(BundleContext bundleContext, Map properties) { this.bundleContext = bundleContext; contextName = properties.get(CONTEXT_NAME); + if (cmsApp != null) + themingUpdated(); // registerIfAllThemesAvailable(); } public void destroy(BundleContext bundleContext, Map properties) { - + if (cmsApp != null) + cmsApp.removeCmsAppListener(this); } @Override