Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » Gallery : NullPointerException at clearAll()
Gallery : NullPointerException at clearAll() [message #588363] Tue, 05 February 2008 13:37
Sakis Kotisis is currently offline Sakis KotisisFriend
Messages: 33
Registered: July 2009
Location: Belgium
Member
Using the GalleryTreeViewer, trying to call setInput(Object) with a new =
=

Object, throws a NullPointerException.

The critical part is the following :

public void clearAll() {
checkWidget();
if (items !=3D null) {
// Clear items
for (int i =3D 0; i < items.length; i++) {

// Dispose items if not virtual
if (!virtual) {
if (items[i] !=3D null) {
// TODO: send a dispose event
items[i].dispose();
}
}

// Empty item
items[i] =3D null;
}
}

// Free array if not virtual
if (!virtual) {
items =3D null;
}
// TODO: I'm clearing selection here
// but we have to check that Table has the same behavior
this._deselectAll();

updateStructuralValues(false);
updateScrollBarsProperties();
redraw();

}

items[i] is disposed, and is then assigned to null, which throws the =

Exception.

-- =

Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Previous Topic:FormattedText Currency
Next Topic:PShelf: How to change BGColor for PShelfItems
Goto Forum:
  


Current Time: Thu Apr 25 07:36:01 GMT 2024

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

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

Back to the top