ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 29052] getProject() method returns null when called from Custom Tasks
Date Mon, 12 Oct 2009 15:42:39 GMT

gzv <> changed:

           What    |Removed                     |Added
           Priority|P3                          |P2
           Platform|All                         |Other
            Version|1.5.3                       |1.7.1
         OS/Version|All                         |Windows Vista
           Severity|blocker                     |critical

--- Comment #10 from gzv <> 2009-10-12 08:42:36 UTC ---
I am trying to get a custom ant task to work. Once in a while it works fine and
the other times it gives me null pointer exceptions. When I put print
statements in the code, I found out that it works fine when getProject()
returns a valid value and gives me null pointer exceptions when getProject()
returns null.  

I read in the previous comment that it worked fine when they moved the code
from the constructor to the execute method. My code is already in the execute
method. Following is the statement where I am using getProject():
DirectoryScanner ds = fileset.getDirectoryScanner(getProject());

Are there any work arounds available for this? 
Any help / suggestions will be appreciated!

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

View raw message