JSC IDE throws NPE

IDE throwing NullPointerException, when in designer I have selected a hyperlink and in properties window I try to open dialog to specify url property's value

*********** Exception occurred ************ at 8:35 PM on Sep 20, 2006

java.lang.NullPointerException

at com.sun.rave.propertyeditors.UrlPropertyPanel.generateTargetTree(UrlPropertyPan el.java:354)

at com.sun.rave.propertyeditors.UrlPropertyPanel.<init>(UrlPropertyPanel.jav a:104)

at com.sun.rave.propertyeditors.UrlPropertyEditor.getCustomEditor(UrlPropertyEdito r.java:68)

at com.sun.rave.propertyeditors.binding.ValueBindingPropertyEditor.getCustomEditor (ValueBindingPropertyEditor.java:339)

at org.openide.explorer.propertysheet.PropertyDialogManager.<init>(PropertyD ialogManager.java:110)

at org.openide.explorer.propertysheet.CustomEditorAction.actionPerformed(CustomEdi torAction.java:173)

at org.openide.explorer.propertysheet.SheetTable.editCellAt(SheetTable.java:856)

at javax.swing.plaf.basic.BasicTableUI$Handler.adjustFocusAndSelection(BasicTableU I.java:953)

[1113 byte] By [ndzpac] at [2007-11-26 10:16:57]
# 1
Hi ndzpac,Are you using Creator 2 Update 1? That's a very typical use case scenario which undouabtely got tested and should be working, so the src of the problem may lie somewhere else?Sandeep--Creator Team
skj at 2007-7-7 2:11:05 > top of Java-index,Development Tools,Java Tools...
# 2
Hi Sandeep,Yes, I am using Creator 2 Update 1 with latest hot fixes.Thanks.
ndzpac at 2007-7-7 2:11:05 > top of Java-index,Development Tools,Java Tools...
# 3

Sometimes after making some change in designer, if I reopen page in designer then designer displays nothing and in log file it says

java.lang.NullPointerException

at com.sun.rave.designer.DesignerTopComp.componentShowing(DesignerTopComp.java:868 )

at org.netbeans.core.multiview.MultiViewPeer.showCurrentElement(MultiViewPeer.java :233)

at org.netbeans.core.multiview.MultiViewPeer.showCurrentElement(MultiViewPeer.java :205)

at org.netbeans.core.multiview.MultiViewPeer$SelectionListener.selectionChanged(Mu ltiViewPeer.java:480)

at org.netbeans.core.multiview.MultiViewModel.fireSelectionChanged(MultiViewModel. java:224)

at org.netbeans.core.multiview.MultiViewModel.setActiveDescription(MultiViewModel. java:93)

at org.netbeans.core.multiview.MultiViewModel$BtnGroup.setSelected(MultiViewModel. java:274)

at javax.swing.JToggleButton$ToggleButtonModel.setSelected(JToggleButton.java:215)

at javax.swing.ButtonGroup.setSelected(ButtonGroup.java:139)

at org.netbeans.core.multiview.MultiViewModel$BtnGroup.setSelected(MultiViewModel. java:270)

at javax.swing.JToggleButton$ToggleButtonModel.setSelected(JToggleButton.java:215)

at javax.swing.JToggleButton$ToggleButtonModel.setPressed(JToggleButton.java:250)

at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.ja va:234)

at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)

at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)

ndzpac at 2007-7-7 2:11:05 > top of Java-index,Development Tools,Java Tools...
# 4
Though, I don't modify source outside Creator, but sometimes it complains that source is dirty i.e. Model Dirty and hangs.
ndzpac at 2007-7-7 2:11:05 > top of Java-index,Development Tools,Java Tools...
# 5
Hi ndzpac,If you were to nuke the userdir, is the NPE you mentioned above reproducible? If so, can you maybe outline the reproducible case for us?In the meanwhile, I'll try to see if we have an existing bug around that...Thanks.Sandeep--Creator Team
skj at 2007-7-7 2:11:05 > top of Java-index,Development Tools,Java Tools...
# 6

I have exactly the same problem! I have a hyperlink in my project which opens a manual.PDF-file. I added some information to my pdf-file and just wanted to replace the old pdf with the new one. And after that no hyperlink is working properly in my project. I cannot delete the userdir because it磗 containing a lot of references to important libraries. In all other projects in creator I can open the editor for the url-property of a hyperlink. So I thought the project磗 settings are wrong. but even after I had deleted the project from my workspace and got it again from our cvs, I still had the same problem.

Any suggestions how to solve this? there must be a possibility to replace such files without destroying the whole project! how should I refresh such files like PDF when these aren`t files created with sun creator? creator is a creat tool but sometimes so soul-destroying...

dan_k at 2007-7-7 2:11:05 > top of Java-index,Development Tools,Java Tools...