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 196723 - PropertyPanel throws error when dragged into Matisse
Summary: PropertyPanel throws error when dragged into Matisse
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Explorer (show other bugs)
Version: 7.0.1
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-15 11:12 UTC by Geertjan Wielenga
Modified: 2011-09-18 14:01 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Geertjan Wielenga 2011-03-15 11:12:29 UTC
1. Add a PropertyPanel to the Palette (i.e., get it from the explorer.jar in the IDE and then add it to the Palette).
2. Drag it onto a TopComponent. Result:

java.lang.NullPointerException
	at org.openide.explorer.propertysheet.RendererFactory.getRenderer(RendererFactory.java:202)
	at org.openide.explorer.propertysheet.RendererPropertyDisplayer.getRenderer(RendererPropertyDisplayer.java:296)
	at org.openide.explorer.propertysheet.EditorPropertyDisplayer.getPreferredSize(EditorPropertyDisplayer.java:260)
	at org.openide.explorer.propertysheet.PropertyPanel.getPreferredSize(PropertyPanel.java:571)
[catch] at org.netbeans.modules.form.VisualReplicator.setupContainerLayout(VisualReplicator.java:821)
	at org.netbeans.modules.form.VisualReplicator.updateContainerLayout(VisualReplicator.java:329)
	at org.netbeans.modules.form.FormDesigner$LayoutMapper.rebuildLayout(FormDesigner.java:2224)
	at org.netbeans.modules.form.layoutdesign.LayoutDesigner.updateCurrentState(LayoutDesigner.java:117)
	at org.netbeans.modules.form.FormDesigner.updateComponentLayer(FormDesigner.java:564)
	at org.netbeans.modules.form.FormDesigner.access$2000(FormDesigner.java:107)
	at org.netbeans.modules.form.FormDesigner$FormListener.run(FormDesigner.java:2493)
	at org.netbeans.modules.form.FormLAF$3.run(FormLAF.java:329)
	at org.openide.util.Mutex.doEventAccess(Mutex.java:1361)
	at org.openide.util.Mutex.readAccess(Mutex.java:271)
	at org.netbeans.modules.form.FormLAF.executeWithLookAndFeel(FormLAF.java:312)
	at org.netbeans.modules.form.FormDesigner$FormListener.processEvents(FormDesigner.java:2339)
	at org.netbeans.modules.form.FormDesigner$FormListener.formChanged(FormDesigner.java:2305)
	at org.netbeans.modules.form.FormModel.fireEvents(FormModel.java:1296)
	at org.netbeans.modules.form.FormModel.fireEventBatch(FormModel.java:1269)
	at org.netbeans.modules.form.FormModel.firePendingEvents(FormModel.java:1232)
	at org.netbeans.modules.form.FormModel.access$000(FormModel.java:68)
	at org.netbeans.modules.form.FormModel$2.run(FormModel.java:1212)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:642)
	at java.awt.EventQueue.access$000(EventQueue.java:85)
	at java.awt.EventQueue$1.run(EventQueue.java:603)
	at java.awt.EventQueue$1.run(EventQueue.java:601)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:612)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:148)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Comment 1 Geertjan Wielenga 2011-09-01 17:31:09 UTC
Would be great if this issue could be fixed soon.
Comment 2 Jan Peska 2011-09-12 14:35:45 UTC
Please evaluate.

Not 100% sure about target component, so please forgive me if I chose wrong one :)
Comment 3 Jan Stola 2011-09-12 20:04:22 UTC
I am sorry, but you are the one who should evaluate this issue. I have no idea how your component (=PropertyPanel) works and why it throws NPE.

If you still believe that there is some problem in GUI Builder then you should describe it clearly. So far, I don't see any justification why this exception is not caused by a bug in PropertyPanel itself.
Comment 4 Geertjan Wielenga 2011-09-12 20:06:48 UTC
I believe it is a problem in PropertyPanel.

Would be great if we could drag and drop a PropertyPanel into a Matisse GUI form, since PropertyPanel is a very useful component that is now (because it cannot be dragged and dropped) seldom used.
Comment 5 Jan Peska 2011-09-13 07:22:07 UTC
(In reply to comment #4)
> I believe it is a problem in PropertyPanel.

Then I believe it is up to Property Sheet to evaluate this issue (PropertyPanel is part of Explorer&Property Sheet module/component) 

-> reassigning to Explorer&Property Sheet
Comment 6 Jaroslav Tulach 2011-09-16 06:36:25 UTC
ergonomics#f716004cb0c7
Comment 7 Quality Engineering 2011-09-18 14:01:38 UTC
Integrated into 'main-golden', will be available in build *201109180600* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/f716004cb0c7
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #196723: Never return null model