From de7ff37a61621dff2d4861d6cd9b50f7a0384e04 Mon Sep 17 00:00:00 2001 From: Vladimir Krivosheev Date: Wed, 24 Jan 2018 19:51:54 +0100 Subject: [PATCH] IDEA-CR-28745 check that storages list not empty --- platform/configuration-store-impl/src/ComponentInfo.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/configuration-store-impl/src/ComponentInfo.kt b/platform/configuration-store-impl/src/ComponentInfo.kt index febdc3eb905d..b3fe7b7d649d 100644 --- a/platform/configuration-store-impl/src/ComponentInfo.kt +++ b/platform/configuration-store-impl/src/ComponentInfo.kt @@ -12,7 +12,7 @@ internal fun createComponentInfo(component: Any, stateSpec: State?): ComponentIn else -> ComponentInfoImpl(component, stateSpec) } - if (stateSpec != null && stateSpec.storages.all { it.roamingType === RoamingType.DISABLED }) { + if (stateSpec != null && !stateSpec.storages.isEmpty() && stateSpec.storages.all { it.roamingType === RoamingType.DISABLED }) { componentInfo.lastSaved = (System.currentTimeMillis() / 1000).toInt() }