| NullPointerException in BinaryStorage [message #661913] |
Mon, 28 March 2011 10:06  |
SMILANewBee Messages: 42 Registered: August 2010 |
Member |
|
|
Hello,
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 missed?
|
|
|
| Re: NullPointerException in BinaryStorage [message #661945 is a reply to message #661913] |
Mon, 28 March 2011 10:51   |
|
Originally posted by: juergen.schumacher.attensity.com
Hi,
Am 28.03.2011, 16:06 Uhr, schrieb SMILANewBee <nils.thieme@unister.de>:
> Hello,
>
> 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
> missed?
Thanks for the hint, the fix sounds OK to me. Probably a multi-threading
issue where
two threads try to delete the same folder at the same time? I will add the
fix to
our trunk.
Regards,
Juergen.
|
|
|
| Re: NullPointerException in BinaryStorage [message #661946 is a reply to message #661913] |
Mon, 28 March 2011 10:51  |
|
Originally posted by: juergen.schumacher.attensity.com
Hi,
Am 28.03.2011, 16:06 Uhr, schrieb SMILANewBee <nils.thieme@unister.de>:
> Hello,
>
> 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
> missed?
Thanks for the hint, the fix sounds OK to me. Probably a multi-threading
issue where
two threads try to delete the same folder at the same time? I will add the
fix to
our trunk.
Regards,
Juergen.
|
|
|
Powered by
FUDForum. Page generated in 0.02238 seconds