ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 46747] sync task crashes with NPE when trying to delete dead directory symlink
Date Sun, 22 Feb 2009 13:36:57 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=46747





--- Comment #1 from skoppehel@intersoft.de  2009-02-22 05:36:56 PST ---
Created an attachment (id=23295)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=23295)
Patch to test for null

The attached patch makes the NPE go away by testing f.list() for null before
looking at length. Whether or not the fact that a non-listable file appears at
this point is indicative of a deeper bug somewhere else, I cannot say. The test
case I described now works as expected, the dead link gets deleted.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message