This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 18300 - Unrep. NPE from PropertySheet
Summary: Unrep. NPE from PropertySheet
Status: RESOLVED WORKSFORME
Alias: None
Product: platform
Classification: Unclassified
Component: Explorer (show other bugs)
Version: 3.x
Hardware: PC Linux
: P4 blocker (vote)
Assignee: Peter Zavadsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-12-03 15:04 UTC by Jesse Glick
Modified: 2008-12-22 19:43 UTC (History)
0 users

See Also:
Issue Type: TASK
Exception Reporter:


Attachments
Stack trace (1.99 KB, text/plain)
2001-12-03 15:05 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2001-12-03 15:04:28 UTC
Observed in [r33 dec 03]. What is weird about it: activeNode.getCustomizer() is
null (why? why is it being customized if it has none? probably a race
condition); and this section of code is not even supposed to be run except in
standalone mode. Seen in a fresh build with one module (ant) while playing with
showing and closing dialogs (Filesystems customizer specifically). Could prevent
by just returning if aN.customizer==null, but clearly something else was wrong.
Comment 1 Jesse Glick 2001-12-03 15:05:48 UTC
Created attachment 3675 [details]
Stack trace
Comment 2 Peter Zavadsky 2002-01-29 08:18:04 UTC
Eval:
I don't see a synch problem there. The setting of activeNode(AN) and
enabling/disabling of the customizer button is done in one task always
done in AWT thread. Then invoking of the customizer is also done
always in AWT.
 So I only suspect the AN which claimed it has a customizer
(hasCustomizer == true), returned null from getCustomizer method.
(Don't you remember the node which you tried to customize?)
Comment 3 Jesse Glick 2002-01-29 11:07:37 UTC
As I wrote, I think the node in question was the Filesystems root
node, which should of course always have a customizer.
Comment 4 Peter Zavadsky 2002-01-30 13:06:14 UTC
Hm, the FileSystems node is OK.
I looked again at it and didn't find something suspicious.
Really very strange, why it has passed to the wrong code section and
why it was null.
 It makes me to worry if we patch it the way just to return on null
customizer, we never find the cause of the problem. So I would rather
suggest to throw IllegalStateExc with the node which had null
customizer instead.
Comment 5 Jesse Glick 2002-01-31 10:33:06 UTC
Right. I guess this can be closed as WORKSFORME, it is clearly
unreproducible. Maybe more information will appear later.
Comment 6 Peter Zavadsky 2002-01-31 15:41:02 UTC
Closing as worksforme.

Also added to the code to throw IAE when the node doesn't have
customizer with the node in message.

Change:
openide/../explorer/propertysheet/PropertySheet.java [1.76]