From 4d7b3faf3f250d09daac0f93c733848714501962 Mon Sep 17 00:00:00 2001 From: Robert von Burg Date: Tue, 23 Apr 2024 15:30:59 +0200 Subject: [PATCH] [Fix] Fixed RestfulStrolchComponent not starting --- .../main/java/li/strolch/rest/RestfulStrolchComponent.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/web-rest/src/main/java/li/strolch/rest/RestfulStrolchComponent.java b/web-rest/src/main/java/li/strolch/rest/RestfulStrolchComponent.java index aeecb1569..060d5cab8 100644 --- a/web-rest/src/main/java/li/strolch/rest/RestfulStrolchComponent.java +++ b/web-rest/src/main/java/li/strolch/rest/RestfulStrolchComponent.java @@ -204,10 +204,7 @@ public class RestfulStrolchComponent extends StrolchComponent { @Override public void start() throws Exception { - if (instance == null) - instance = this; - else if (instance != this) - throw new IllegalStateException("Instance is already set! This component is a singleton resource!"); + instance = this; super.start(); }