mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 03:21:12 +07:00
catch exceptions from ExtensionsAreaImpl#getExtensionPoint in ExecUtils
GitOrigin-RevId: a35d3d4a543cc0ba59f9bab4bbe30f8b6d6d488b
This commit is contained in:
committed by
intellij-monorepo-bot
parent
ba07987cc7
commit
ba35b6fb80
@@ -155,7 +155,10 @@ object ExecUtil {
|
||||
val command = mutableListOf(commandLine.exePath)
|
||||
command += commandLine.parametersList.list
|
||||
|
||||
val providedCommand = SudoCommandProvider.EXTENSION_POINT_NAME.extensionList.firstNotNullOfOrNull { it.sudoCommand(commandLine) }
|
||||
val providedCommand = runCatching {
|
||||
SudoCommandProvider.EXTENSION_POINT_NAME.extensionList.firstNotNullOfOrNull { it.sudoCommand(commandLine) }
|
||||
}.getOrNull()
|
||||
|
||||
val sudoCommandLine = when {
|
||||
providedCommand != null -> providedCommand
|
||||
SystemInfoRt.isWindows -> {
|
||||
|
||||
Reference in New Issue
Block a user