DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43659>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43659
Summary: NullPointer in FilterMapper in conjunction with
linecontains mapper
Product: Ant
Version: 1.7.0
Platform: Other
OS/Version: other
Status: NEW
Severity: normal
Priority: P2
Component: Core tasks
AssignedTo: dev@ant.apache.org
ReportedBy: bruno.navert@morganstanley.com
When using a <linecontains> mapper to filter out certain lines, FilterMapper
throws a NullPointerException on line 74:
if (result.length() == 0) {
This line should read:
if (result == null || result.length() == 0) {
This can be reproduced with the following ant tasks:
<pathconvert property="some.property" pathsep=" " refid="some_path">
<mapper>
<filtermapper>
<linecontains negate="true">
<contains value="servlet"/>
</linecontains>
</filtermapper>
</mapper>
</pathconvert>
(this construct is used to exclude certain entries from a PATH structure, in
order to then be able to include it in a manifest's Class-Path attribute).
With the suggested null check, the filter mapping properly excludes the entries
as expected.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
|