mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-CR-35561 if empty state loaded — simply clear mappings
This commit is contained in:
@@ -252,7 +252,13 @@ public abstract class PerFileMappingsBase<T> implements PersistentStateComponent
|
||||
@SuppressWarnings("deprecation")
|
||||
List<PerFileMappingState> list = PerFileMappingState.read(element, getValueAttribute());
|
||||
synchronized (myMappings) {
|
||||
myDeferredMappings = list;
|
||||
if (list.isEmpty()) {
|
||||
myMappings.clear();
|
||||
myDeferredMappings = null;
|
||||
}
|
||||
else {
|
||||
myDeferredMappings = list;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user