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.
When I invoke layout inspector on NB6.0 in Visual Web JSF project and remove some components from design editor, layout inspector does not update and removed components are still remaining. Then, close inspector window and re-invoke it, following exception are displayed and inspector does not invoked. java.lang.NullPointerException at org.netbeans.modules.visualweb.css2.DomInspector.createWindowIfNecessary(DomInspector.java:195) at org.netbeans.modules.visualweb.css2.DomInspector.show(DomInspector.java:135) at org.netbeans.modules.visualweb.designer.InteractionManager.selectDomInspectorBox(InteractionManager.java:1261) at org.netbeans.modules.visualweb.designer.InteractionManager.access$400(InteractionManager.java:118) at org.netbeans.modules.visualweb.designer.InteractionManager$MouseHandler.mouseClicked(InteractionManager.java:1421) at java.awt.Component.processMouseEvent(Component.java:5520) at javax.swing.JComponent.processMouseEvent(JComponent.java:3135) at java.awt.Component.processEvent(Component.java:5282) at java.awt.Container.processEvent(Container.java:1966) at java.awt.Component.dispatchEventImpl(Component.java:3984) at java.awt.Container.dispatchEventImpl(Container.java:2024) at java.awt.Component.dispatchEvent(Component.java:3819) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3901) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822) at java.awt.Container.dispatchEventImpl(Container.java:2010) at java.awt.Window.dispatchEventImpl(Window.java:1791) at java.awt.Component.dispatchEvent(Component.java:3819) [catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) To Reproduce: 1. Create Visual Web JSF project. 2. Create 2 button on the page. 3. Click Ctrl + Alt + one of the button, to invoke layout inspector. 4. Remove one the button from design page. 5. In layout inspector window, removed button is still displayed. 6. Close inspector window. 7. Click Ctrl + Alt + the button, again. 8. Above exception is displayed and layout inspector never displayed.
Since the exception is coming from designer, assigning this to PeterZ for initial analysis.
Yes, this is as designed. The layout inspector is static, changing this to RFE.
Thank you for your evaluation. I could understand that inspector is designed static, so it's OK to RFE to create dynamic inspector. However, it should not output the Exception, and it's a bug. If this RFE is integrated soon, fine to wait, but if not, please fix at least not to display the Exception soon. If you need the other bug ID only for Exception, please let me know and I'll file it.
Oh, sorry, you're right, I must have been blind. The exception is a bug for sure, changing it back to a defect. After I fix the exception, then I change it to the RFE.
I found that the NPE was already fixed (but unfortunatelly it didn't make it into 6.0), see issue #121239. So I am changing the rest to the RFE (to make the DomInspector dynamic).