mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-132585 NPE when XSLT debug
This commit is contained in:
+6
-2
@@ -69,10 +69,14 @@ public class XsltCommandLineState extends CommandLineState {
|
||||
super(environment);
|
||||
|
||||
myXsltRunConfiguration = xsltRunConfiguration;
|
||||
myIsDebugger = "Debug".equals(environment.getRunner().getRunnerId());
|
||||
myIsDebugger = "Debug".equals(environment.getExecutor().getId());
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isDebugger() {
|
||||
return myIsDebugger;
|
||||
}
|
||||
|
||||
@Override
|
||||
@NotNull
|
||||
protected OSProcessHandler startProcess() throws ExecutionException {
|
||||
final OSProcessHandler osProcessHandler = createJavaParameters().createOSProcessHandler();
|
||||
|
||||
+4
-2
@@ -144,8 +144,10 @@ public final class XsltRunConfiguration extends LocatableConfigurationBase imple
|
||||
if (myOutputType == OutputType.CONSOLE) {
|
||||
final HighlightingOutputConsole console = new HighlightingOutputConsole(getProject(), myFileType);
|
||||
|
||||
boolean consoleTabAdded = false;
|
||||
for (XsltRunnerExtension extension : XsltRunnerExtension.getExtensions(this, false /* doesn't matter, xslt debugger uses own flag */)) {
|
||||
XsltCommandLineState state = startedProcess.getUserData(XsltCommandLineState.STATE);
|
||||
boolean debug = state != null && state.isDebugger();
|
||||
boolean consoleTabAdded = false;
|
||||
for (XsltRunnerExtension extension : XsltRunnerExtension.getExtensions(this, debug)) {
|
||||
if (extension.createTabs(getProject(), manager, console, startedProcess)) {
|
||||
consoleTabAdded = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user