Fix rollouts status cache eviction and NPE in UI (#530)
* Fix nullpointer in UI and rollout cache invalidation prob. Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com> * Sonar issue and util usage. Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com> * Evict cache on tenant delete. Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com>
This commit is contained in:
@@ -44,6 +44,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.http.HttpHeaders;
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.util.CollectionUtils;
|
||||
|
||||
import com.google.common.eventbus.EventBus;
|
||||
import com.google.common.io.BaseEncoding;
|
||||
@@ -105,7 +106,7 @@ public class DeviceSimulatorUpdater {
|
||||
|
||||
device.setProgress(0.0);
|
||||
|
||||
if (modules == null || modules.isEmpty()) {
|
||||
if (CollectionUtils.isEmpty(modules)) {
|
||||
device.setSwversion(swVersion);
|
||||
} else {
|
||||
device.setSwversion(
|
||||
|
||||
Reference in New Issue
Block a user