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
Using the GalleryTreeViewer, trying to call setInput(Object) with a new =

Object, throws a NullPointerException.

The critical part is the following :

public void clearAll() {
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

// 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



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


-- =

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

Current Time: Sun Nov 27 15:56:52 GMT 2022

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

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

Back to the top