We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e285e3 commit 2b2028eCopy full SHA for 2b2028e
shared/src/main/java/com/vaadin/osgi/resources/impl/VaadinResourceTrackerComponent.java
@@ -151,9 +151,11 @@ void unbindVaadinResourceService(VaadinResourceService vaadinService) {
151
*/
152
@Activate
153
protected void activate(BundleContext context) {
154
- vaadinSharedContext = context;
155
- for (Delegate<?> registration : resourceToRegistration.values()) {
156
- registration.register(vaadinSharedContext, vaadinService);
+ synchronized (resourceToRegistration) {
+ vaadinSharedContext = context;
+ for (Delegate<?> registration : resourceToRegistration.values()) {
157
+ registration.register(context, vaadinService);
158
+ }
159
}
160
161
0 commit comments