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.
Summary: | NullPointerException at org.netbeans.modules.project.uiapi.ProjectCopyPanel.setProject | ||
---|---|---|---|
Product: | projects | Reporter: | dnikitin <dnikitin> |
Component: | Generic Projects UI | Assignee: | Jesse Glick <jglick> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | alexvsimon, issues, mmirilovic |
Priority: | P3 | ||
Version: | 7.0.1 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 120064 |
Attachments: |
stacktrace
NPE at org.netbeans.modules.project.uiapi.ProjectCopyPanel.setProject(ProjectCopyPanel.java:345) |
Description
dnikitin
2011-06-26 17:04:52 UTC
Created attachment 109113 [details]
stacktrace
* open full remote project * invoke Copy… via context menu => NPE core-main #e5c9c582a672 Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/e5c9c582a672 User: Jesse Glick <jglick@netbeans.org> Log: #199706: NullPointerException at org.netbeans.modules.project.uiapi.ProjectCopyPanel.setProject Just disable smart prepopulation of "new location" field when project is remote. Better would be to actually permit remote -> remote copy, but this would require a new UI. NPE also appears when you try to rename or move a remote project Created attachment 109886 [details]
NPE at org.netbeans.modules.project.uiapi.ProjectCopyPanel.setProject(ProjectCopyPanel.java:345)
"Copy ..." from context menu on full remote project caouses NPE
Product Version: NetBeans IDE 7.0.1 (Build cnd-build-5694-on-20110809) Java: 1.6.0_23; Java HotSpot(TM) 64-Bit Server VM 19.0-b09 System: Linux version 2.6.32-21-generic running on amd64; UTF-8; en_US (nb) --------------------------------------- the bug is still reproduced in dev-build I'll reopen the bug. Oops! Verified in dev-build NetBeans IDE Dev (Build cnd-build-trunk-279-on-20110810) Fix transplanted to release701_fixes on elif: e5c9c582a672 transplanted to 5e8c5c8ad67d Product Version: NetBeans IDE 7.0.1 (Build oss-platform-build-22-on-20110818) Java: 1.6.0_23; Java HotSpot(TM) 64-Bit Server VM 19.0-b09 ------------------------------------------------------ to reproduce: * open full remote project * invoke Rename… via context menu => NPE ------------------------------------------ java.lang.NullPointerException at org.netbeans.modules.project.uiapi.DefaultProjectOperationsImplementation.computeError(DefaultProjectOperationsImplementation.java:691) at org.netbeans.modules.project.uiapi.DefaultProjectOperationsImplementation.computeError(DefaultProjectOperationsImplementation.java:686) at org.netbeans.modules.project.uiapi.DefaultProjectRenamePanel.computeError(DefaultProjectRenamePanel.java:311) at org.netbeans.modules.project.uiapi.DefaultProjectRenamePanel.validateDialog(DefaultProjectRenamePanel.java:294) at org.netbeans.modules.project.uiapi.DefaultProjectRenamePanel.<init>(DefaultProjectRenamePanel.java:85) at org.netbeans.modules.project.uiapi.DefaultProjectOperationsImplementation.renameProject(DefaultProjectOperationsImplementation.java:348) at org.netbeans.spi.project.ui.support.DefaultProjectOperations.performDefaultRenameOperation(DefaultProjectOperations.java:158) at org.netbeans.modules.cnd.makeproject.MakeActionProvider.invokeAction(MakeActionProvider.java:284) at org.netbeans.modules.project.ui.actions.ProjectAction.actionPerformed(ProjectAction.java:134) at org.netbeans.modules.project.ui.actions.LookupSensitiveAction.actionPerformed(LookupSensitiveAction.java:170) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242) at javax.swing.AbstractButton.doClick(AbstractButton.java:357) at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:809) at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:850) at java.awt.Component.processMouseEvent(Component.java:6267) at javax.swing.JComponent.processMouseEvent(JComponent.java:3267) at java.awt.Component.processEvent(Component.java:6032) at java.awt.Container.processEvent(Container.java:2041) at java.awt.Component.dispatchEventImpl(Component.java:4630) at java.awt.Container.dispatchEventImpl(Container.java:2099) at java.awt.Component.dispatchEvent(Component.java:4460) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168) at java.awt.Container.dispatchEventImpl(Container.java:2085) at java.awt.Window.dispatchEventImpl(Window.java:2478) at java.awt.Component.dispatchEvent(Component.java:4460) at java.awt.EventQueue.dispatchEvent(EventQueue.java:599) at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:148) [catch] 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) Jesse, please fix next NPE for full remote project in 701patch-candidate time. The fist part of fix (e5c9c582a672) we are going to include in patch. (In reply to comment #9) > Fix transplanted to release701_fixes on elif: > e5c9c582a672 transplanted to 5e8c5c8ad67d releases #5e8c5c8ad67d does not seem to exist; where did you transplant this? Why is the whiteboard not 701patch-fixed? (In reply to comment #11) > please fix next NPE Please file a separate bug so we can keep track of what has and has not been fixed when. Do not reopen a bug unless the purported fix really did not fix the originally reported problem. separate bug201136 for "Rename..." (In reply to comment #12) > (In reply to comment #9) > > Fix transplanted to release701_fixes on elif: > > e5c9c582a672 transplanted to 5e8c5c8ad67d > > releases #5e8c5c8ad67d does not seem to exist; where did you transplant this? > Why is the whiteboard not 701patch-fixed? > CND team uses clone of releases branch release701_fixes on elif. See change set: http://elif.russia.sun.com/hg/releases_elif/rev/5e8c5c8ad67d CND will put all changes on releases branch release701_fixes after verifying bug on elif. Approximately it will be done at the end of this week. Verified in NetBeans IDE 7.0.1 (Build oss-platform-build-25-on-20110819) the bug with "Copy ..." is fixed but with "Rename..." is still reproduced, see bug201136 integrated in release701_fixes: 5e8c5c8ad67d transplanted to 286552072025 Integrated into 'releases' Changeset: http://hg.netbeans.org/releases/rev/286552072025 User: Jesse Glick <jglick@netbeans.org> Log: #199706: NullPointerException at org.netbeans.modules.project.uiapi.ProjectCopyPanel.setProject Just disable smart prepopulation of "new location" field when project is remote. Better would be to actually permit remote -> remote copy, but this would require a new UI. (transplanted from 5e8c5c8ad67da490e409097e8577068e90be7dba) Integrated into 'releases' Changeset: http://hg.netbeans.org/releases/rev/5e8c5c8ad67d User: Jesse Glick <jglick@netbeans.org> Log: #199706: NullPointerException at org.netbeans.modules.project.uiapi.ProjectCopyPanel.setProject Just disable smart prepopulation of "new location" field when project is remote. Better would be to actually permit remote -> remote copy, but this would require a new UI. |