Skip to main content



      Home
Home » Eclipse Projects » Nebula » Gallery : NullPointerException at clearAll()
Gallery : NullPointerException at clearAll() [message #48635] Tue, 05 February 2008 08:37 Go to next message
Eclipse UserFriend
Originally posted by: tkotisis.urbantech.gr

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/
Re: Gallery : NullPointerException at clearAll() [message #48849 is a reply to message #48635] Tue, 05 February 2008 14:03 Go to previous messageGo to next message
Eclipse UserFriend
Could you please post this to Bugzilla? It will be easier to track
there. Thanks.

FYI, GalleryTreeViewer is still somewhat experimental and has only been
tested for my use cases. In particular, it has not been used
extensively on any OS besides Windows XP. If you submit bugs you
encounter to Bugzilla, I'll do my best to keep up with them.

--
Peter
Re: Gallery : NullPointerException at clearAll() [message #49104 is a reply to message #48849] Wed, 06 February 2008 10:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tkotisis.urbantech.gr

Opened

https://bugs.eclipse.org/bugs/show_bug.cgi?id=3D217988

On Tue, 05 Feb 2008 21:03:38 +0200, Peter Centgraf <peter@centgraf.net> =
=

wrote:

> Could you please post this to Bugzilla? It will be easier to track =

> there. Thanks.
>
> FYI, GalleryTreeViewer is still somewhat experimental and has only bee=
n =

> tested for my use cases. In particular, it has not been used =

> extensively on any OS besides Windows XP. If you submit bugs you =

> encounter to Bugzilla, I'll do my best to keep up with them.
>
> --
> Peter



-- =

Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Re: Gallery : NullPointerException at clearAll() [message #49601 is a reply to message #49104] Wed, 20 February 2008 03:41 Go to previous message
Eclipse UserFriend
I've fixed this, I still have to check a few things before committing
the changes. Expect this to be fixed for the next week.
The problem lies in the GalleryWidget. This bug was introduced by fixing
bug 193139.

I'll add that I also test the GalleryTreeViewer on OSX, where it works
great. And the Gallery widget is at least used in
http://sourceforge.net/projects/sharemedia and in my gallery navigator
plugin for eclipse http://nricheton.homeip.net/?p=172

--
Nicolas



Sakis Kotisis a écrit :
> Opened
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=217988
>
> On Tue, 05 Feb 2008 21:03:38 +0200, Peter Centgraf <peter@centgraf.net>
> wrote:
>
>> Could you please post this to Bugzilla? It will be easier to track
>> there. Thanks.
>>
>> FYI, GalleryTreeViewer is still somewhat experimental and has only
>> been tested for my use cases. In particular, it has not been used
>> extensively on any OS besides Windows XP. If you submit bugs you
>> encounter to Bugzilla, I'll do my best to keep up with them.
>>
>> --
>> Peter
>
>
>
Re: Gallery : NullPointerException at clearAll() [message #588438 is a reply to message #48635] Tue, 05 February 2008 14:03 Go to previous message
Eclipse UserFriend
Could you please post this to Bugzilla? It will be easier to track
there. Thanks.

FYI, GalleryTreeViewer is still somewhat experimental and has only been
tested for my use cases. In particular, it has not been used
extensively on any OS besides Windows XP. If you submit bugs you
encounter to Bugzilla, I'll do my best to keep up with them.

--
Peter
Re: Gallery : NullPointerException at clearAll() [message #588508 is a reply to message #48849] Wed, 06 February 2008 10:55 Go to previous message
Eclipse UserFriend
Opened

https://bugs.eclipse.org/bugs/show_bug.cgi?id=3D217988

On Tue, 05 Feb 2008 21:03:38 +0200, Peter Centgraf <peter@centgraf.net> =
=

wrote:

> Could you please post this to Bugzilla? It will be easier to track =

> there. Thanks.
>
> FYI, GalleryTreeViewer is still somewhat experimental and has only bee=
n =

> tested for my use cases. In particular, it has not been used =

> extensively on any OS besides Windows XP. If you submit bugs you =

> encounter to Bugzilla, I'll do my best to keep up with them.
>
> --
> Peter



-- =

Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Re: Gallery : NullPointerException at clearAll() [message #588639 is a reply to message #49104] Wed, 20 February 2008 03:41 Go to previous message
Eclipse UserFriend
I've fixed this, I still have to check a few things before committing
the changes. Expect this to be fixed for the next week.
The problem lies in the GalleryWidget. This bug was introduced by fixing
bug 193139.

I'll add that I also test the GalleryTreeViewer on OSX, where it works
great. And the Gallery widget is at least used in
http://sourceforge.net/projects/sharemedia and in my gallery navigator
plugin for eclipse http://nricheton.homeip.net/?p=172

--
Nicolas



Sakis Kotisis a écrit :
> Opened
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=217988
>
> On Tue, 05 Feb 2008 21:03:38 +0200, Peter Centgraf <peter@centgraf.net>
> wrote:
>
>> Could you please post this to Bugzilla? It will be easier to track
>> there. Thanks.
>>
>> FYI, GalleryTreeViewer is still somewhat experimental and has only
>> been tested for my use cases. In particular, it has not been used
>> extensively on any OS besides Windows XP. If you submit bugs you
>> encounter to Bugzilla, I'll do my best to keep up with them.
>>
>> --
>> Peter
>
>
>
Previous Topic:Gallery Item event listeners
Next Topic:CompositeTable MonthCalendar
Goto Forum:
  


Current Time: Wed May 07 15:16:14 EDT 2025

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

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

Back to the top