installers fixed: do not instantiate ProgressWindow in headless environment

This commit is contained in:
Alexey Kudravtsev
2014-10-06 17:22:39 +04:00
parent c63ea1bf2a
commit 1c618bf947
@@ -594,6 +594,7 @@ public class ApplicationImpl extends PlatformComponentManagerImpl implements App
boolean writeAccessAllowed = isInsideWriteActionEDTOnly();
if (writeAccessAllowed // Disallow running process in separate thread from under write action.
// The thread will deadlock trying to get read action otherwise.
|| isHeadlessEnvironment() && !isUnitTestMode()
) {
LOG.debug("Starting process with progress from within write action makes no sense");
try {