Avoid NPE that hides error when using Ant tasks (schultz)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@
1056264 13f79535-47bb-0310-9956-
ffa450edef68
*/
protected void closeRedirector() {
try {
- if (redirectOutput) {
+ if (redirectOutput && redirectOutPrintStream != null) {
redirector.complete();
}
} catch (IOException ioe) {
<bug>14416</bug>: Make <code>TagLibraryInfo.getTag()</code> more robust
at handling <code>null</code>s. (markt)
</fix>
+ <fix>
+ <bug>50552</bug>: Avoid NPE that hides error message when using Ant
+ tasks. (schultz)
+ </fix>
</changelog>
</subsection>
</section>