Gallery : NullPointerException at clearAll() [message #48635] |
Tue, 05 February 2008 08:37  |
Eclipse User |
|
|
|
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 #49601 is a reply to message #49104] |
Wed, 20 February 2008 03:41  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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 #588639 is a reply to message #49104] |
Wed, 20 February 2008 03:41  |
Eclipse User |
|
|
|
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
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.09401 seconds