Skip to content

Commit 33b84c3

Browse files
committed
Prevent to show results twice in an output window
1 parent 7a863e1 commit 33b84c3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/org/netbeans/modules/php/cake3/commands/Cake3Script.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -390,12 +390,13 @@ private ExecutionDescriptor getDescriptor(Runnable postExecution) {
390390
}
391391

392392
private ExecutionDescriptor.InputProcessorFactory2 getOutProcessorFactory(final LineProcessor lineProcessor) {
393+
if (lineProcessor == null) {
394+
// prevent to show results twice in output window
395+
return null;
396+
}
393397
return new ExecutionDescriptor.InputProcessorFactory2() {
394398
@Override
395399
public InputProcessor newInputProcessor(InputProcessor defaultProcessor) {
396-
if (lineProcessor == null) {
397-
return defaultProcessor;
398-
}
399400
return InputProcessors.ansiStripping(InputProcessors.bridge(lineProcessor));
400401
}
401402
};

0 commit comments

Comments
 (0)