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 #48635] Tue, 05 February 2008 13: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 19:03 Go to previous messageGo to next message
Peter Centgraf is currently offline Peter CentgrafFriend
Messages: 52
Registered: July 2009
Member
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 15: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 08:41 Go to previous message
Nicolas Richeton is currently offline Nicolas RichetonFriend
Messages: 179
Registered: July 2009
Senior Member
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 19:03 Go to previous message
Peter Centgraf is currently offline Peter CentgrafFriend
Messages: 52
Registered: July 2009
Member
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 15:55 Go to previous message
Sakis Kotisis is currently offline Sakis KotisisFriend
Messages: 33
Registered: July 2009
Location: Belgium
Member
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 08:41 Go to previous message
Nicolas Richeton is currently offline Nicolas RichetonFriend
Messages: 179
Registered: July 2009
Senior Member
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: Thu Apr 25 13:27:23 GMT 2024

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

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

Back to the top