assertion replaced with LOG.error

This commit is contained in:
Alexey Kudravtsev
2015-03-03 14:36:53 +03:00
parent d850ce2f47
commit 7b77e57ca7
@@ -979,12 +979,11 @@ public class ApplicationImpl extends PlatformComponentManagerImpl implements App
@Override
public void assertReadAccessAllowed() {
if (!isReadAccessAllowed()) {
throw new RuntimeException(
LOG.error(
"Read access is allowed from event dispatch thread or inside read-action only" +
" (see com.intellij.openapi.application.Application.runReadAction())" +
" Current thread: " + describe(Thread.currentThread()) +
"; dispatch thread: " + EventQueue.isDispatchThread() +"; isDispatchThread(): "+isDispatchThread() +
" SystemEventQueueThread: " + describe(getEventQueueThread()));
" (see com.intellij.openapi.application.Application.runReadAction())",
"Current thread: " + describe(Thread.currentThread()), "; dispatch thread: " + EventQueue.isDispatchThread() +"; isDispatchThread(): "+isDispatchThread(),
"SystemEventQueueThread: " + describe(getEventQueueThread()));
}
}