mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-CR-28745 check that storages list not empty
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user