Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » SeMantic Information Logistics Architecture (SMILA) » NullPointerException in BinaryStorage
NullPointerException in BinaryStorage [message #661913] Mon, 28 March 2011 14:06 Go to next message
SMILANewBee is currently offline SMILANewBeeFriend
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 14:51 Go to previous messageGo to next message
Eclipse UserFriend
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 14:51 Go to previous message
Eclipse UserFriend
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.
Previous Topic:Wrong usage of read-write lock?
Next Topic:Demos wanted: SMILA Conference / 29.6.2011, Berlin --> Please answer end of week
Goto Forum:
  


Current Time: Tue Mar 19 04:55:40 GMT 2024

Powered by FUDForum. Page generated in 0.02066 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top