assertion

This commit is contained in:
Alexey Kudravtsev
2012-09-06 13:00:47 +04:00
parent f4c9db3f75
commit 771d928deb
@@ -951,11 +951,11 @@ public class ApplicationImpl extends ComponentManagerImpl implements Application
@Override
public <T> T runReadAction(@NotNull final Computable<T> computation) {
assertReadActionAllowed();
if (isReadAccessAllowed()) {
return computation.compute();
}
else {
assertReadActionAllowed();
try {
myActionsLock.readLock().acquire();
return computation.compute();