|Re: NullPointerException in BinaryStorage [message #661946 is a reply to message #661913]
||Mon, 28 March 2011 14:51
Originally posted by: juergen.schumacher.attensity.com|
Am 28.03.2011, 16:06 Uhr, schrieb SMILANewBee <firstname.lastname@example.org>:
> we have encountered a NullPointerException in the method
> "deleteEmptyParentFolders" of the class "BssIOUtils". It seems that the
> call "leafFolder.list()" returns null so that the call of the method
> "length" throws a NullPointerException.
> We have fixed this by adding a new condition "leafFolder.list() != null"
> to the while head. Is this correct or has this side effects that we have
Thanks for the hint, the fix sounds OK to me. Probably a multi-threading
two threads try to delete the same folder at the same time? I will add the
Powered by FUDForum
. Page generated in 0.03414 seconds