This is similar to issue 7009 and here is the stack trace:
java.lang.NullPointerException
at org.netbeans.lib.terminalemulator.InterpDumb.processChar(InterpDumb.java:248)
at com.common.terminal.impl.InterpVt100.processChar(InterpVt100.java:437)
at com.common.terminal.impl.InterpXterm.processChar(InterpXterm.java:266)
at org.netbeans.lib.terminalemulator.Term.putc_work(Term.java:5043)
at org.netbeans.lib.terminalemulator.Term.access$5(Term.java:5042)
at org.netbeans.lib.terminalemulator.Term$BaseTermStream.putChars(Term.java:423)
at com.aquafold.datastudio.tools.shell.FluidTerminalLineDiscipline.putChars(FluidTerminalLineDiscipline.java:30)
at org.netbeans.lib.terminalemulator.Term.putChars(Term.java:3493)
at com.common.terminal.api.AbstractTerminalWrapper._scanServerResponseInLoop(AbstractTerminalWrapper.java:274)
at com.aquafold.datastudio.tools.shell.FluidTerminalWrapper.loop(FluidTerminalWrapper.java:87)
at com.aquafold.datastudio.tools.shell.FluidTerminalWrapper$1.run(FluidTerminalWrapper.java:54)
Fixed, SVN r27182.
Related issue:
https://www.aquaclusters.com/app/home/project/public/aquadatastudio/issue/7009
--- notes for developer ----
Command more and command tail do not deal with standard input, they always read input from file(s).
C0/C1 control codes now are filtered by ShellPipe.write(TerminalColor, String) which is used by ShellPipe.write(byte[]) and ShellPipe.write(String). This means control codes are always removed from the the text which destination is terminal. See issue 7009 for more info.
I realized that we cannot filter out C0/C1 control characters in ShellPipe.write(String) and ShellPipe.write(TerminalColor, String) because these methods are used by Fluid Editor which requires control characters support.
I realized that we cannot filter out C0/C1 control characters in ShellPipe.write(String) and ShellPipe.write(TerminalColor, String) because these methods are used by Fluid Editor which requires control characters support.
SVN r27182 change made above in ShellPipe.write(String) has been reverted by SVN r27203.
Command more and command tail now write their output in bytes so that control characters can be filtered out if needed; \tail does not read standard input, only deals with file(s); \more will handle both scenarios. Fixed, SVN r27239.
SVN r27182 change made above in ShellPipe.write(String) has been reverted by SVN r27203.
Command more and command tail now write their output in bytes so that control characters can be filtered out if needed; \tail does not read standard input, only deals with file(s); \more will handle both scenarios. Fixed, SVN r27239.
Verifed in 12.0.0-dev-62. No NPE for binary files
Verifed in 12.0.0-dev-62. No NPE for binary files
Issue #7014 |
Closed |
Fixed |
Resolved |
Completion |
No due date |
Fixed Build trunk/27239 |
No time estimate |
Fixed, SVN r27182.
Related issue:
https://www.aquaclusters.com/app/home/project/public/aquadatastudio/issue/7009
--- notes for developer ----
Command more and command tail do not deal with standard input, they always read input from file(s).
C0/C1 control codes now are filtered by ShellPipe.write(TerminalColor, String) which is used by ShellPipe.write(byte[]) and ShellPipe.write(String). This means control codes are always removed from the the text which destination is terminal. See issue 7009 for more info.