https://issues.apache.org/bugzilla/show_bug.cgi?id=29052

gzv <[email protected]> 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 <[email protected]> 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: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to