You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2010/08/16 17:23:37 UTC
DO NOT REPLY [Bug 49755] New: NPE on tempfile with createfile="true"
https://issues.apache.org/bugzilla/show_bug.cgi?id=49755
Summary: NPE on tempfile with createfile="true"
Product: Ant
Version: 1.8.1
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: major
Priority: P2
Component: Core tasks
AssignedTo: notifications@ant.apache.org
ReportedBy: info_issues.apache.org@nmhq.net
The following
<tempfile property="tempfile" createfile="true"/>
results in this NPE:
java.lang.NullPointerException
at java.io.File.createTempFile(File.java:1780)
at
org.apache.tools.ant.util.FileUtils.createTempFile(FileUtils.java:888)
at org.apache.tools.ant.taskdefs.TempFile.execute(TempFile.java:158)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
[...]
Echoing the generated tempfile name via
<tempfile property="tempfile"/>
<echo message="${tempfile}"/>
outputs
[echo] <current dir>\null1584622828
which suggests that the directory reference is null.
${java.io.tmpdir} is set to C:\DOCUME~1\<username>\LOCALS~1\Temp\ as expected,
so I'm not sure what the problem is.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 49755] NPE on tempfile with createfile="true"
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49755
Stefan Bodewig <bo...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |1.8.2
--- Comment #2 from Stefan Bodewig <bo...@apache.org> 2010-08-17 03:58:27 EDT ---
fixed with svn revision 986226
Thanks!
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 49755] NPE on tempfile with createfile="true"
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49755
--- Comment #1 from Niklas Matthies <in...@nmhq.net> 2010-08-16 11:35:48 EDT ---
ACtually, the problem is with the prefix. When explicitly specifying a prefix,
the NPE goes away.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.