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 229091 - NPE when trying to type path to configure script in new full remote project with existing sources
Summary: NPE when trying to type path to configure script in new full remote project w...
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.4
Hardware: PC All
: P2 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-26 16:38 UTC by Alexander Pepin
Modified: 2013-04-29 06:36 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 Alexander Pepin 2013-04-26 16:38:15 UTC
See also test results on /hudson/view/IDE-tests/job/ss-test-intel-S2-full_remote/311/testReport/cnd.projects/TestMakefileBasedProject/testCustomScript2

Steps to reproduce:
- add remote host
- call Create Remote C/C++ Project wizard
- choose C/C++ Project with Existing Sources
- specify source folder and select Custom configuration mode
- in Build Tool page select "Using the makefile generated by the configure script"
- try to type path to configure script (e.g. /export/...) 
Result: The slash is typed successfully but any other letter causes NPE.

java.lang.NullPointerException
	at org.netbeans.modules.cnd.makeproject.ui.wizards.MakefileOrConfigurePanel.valid(MakefileOrConfigurePanel.java:276)
	at org.netbeans.modules.cnd.makeproject.ui.wizards.MakefileOrConfigureDescriptorPanel.isValid(MakefileOrConfigureDescriptorPanel.java:96)
	at org.openide.WizardDescriptor.updateStateOpen(WizardDescriptor.java:872)
	at org.openide.WizardDescriptor.updateState(WizardDescriptor.java:820)
	at org.openide.loaders.TemplateWizard.updateState(TemplateWizard.java:754)
	at org.netbeans.modules.cnd.remote.projectui.wizard.ide.NewProjectWizard.updateState(NewProjectWizard.java:71)
	at org.openide.WizardDescriptor._updateState(WizardDescriptor.java:798)
	at org.openide.WizardDescriptor.access$200(WizardDescriptor.java:90)
	at org.openide.WizardDescriptor$Listener.stateChanged(WizardDescriptor.java:2094)
	at org.openide.util.WeakListenerImpl$Change.stateChanged(WeakListenerImpl.java:329)
	at org.netbeans.modules.cnd.makeproject.ui.wizards.MakefileOrConfigureDescriptorPanel.fireChangeEvent(MakefileOrConfigureDescriptorPanel.java:125)
	at org.netbeans.modules.cnd.makeproject.ui.wizards.MakefileOrConfigureDescriptorPanel.stateChanged(MakefileOrConfigureDescriptorPanel.java:131)
	at org.netbeans.modules.cnd.makeproject.ui.wizards.MakefileOrConfigurePanel.update(MakefileOrConfigurePanel.java:126)
	at org.netbeans.modules.cnd.makeproject.ui.wizards.MakefileOrConfigurePanel.access$000(MakefileOrConfigurePanel.java:65)
	at org.netbeans.modules.cnd.makeproject.ui.wizards.MakefileOrConfigurePanel$1.insertUpdate(MakefileOrConfigurePanel.java:79)
	at javax.swing.text.AbstractDocument.fireInsertUpdate(AbstractDocument.java:202)
	at javax.swing.text.AbstractDocument.handleInsertString(AbstractDocument.java:749)
	at javax.swing.text.AbstractDocument.insertString(AbstractDocument.java:708)
	at javax.swing.text.PlainDocument.insertString(PlainDocument.java:130)
	at javax.swing.text.AbstractDocument.replace(AbstractDocument.java:670)
	at javax.swing.text.JTextComponent.replaceSelection(JTextComponent.java:1379)
	at javax.swing.text.DefaultEditorKit$DefaultKeyTypedAction.actionPerformed(DefaultEditorKit.java:884)
	at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1664)
	at javax.swing.JComponent.processKeyBinding(JComponent.java:2879)
	at javax.swing.JComponent.processKeyBindings(JComponent.java:2926)
	at javax.swing.JComponent.processKeyEvent(JComponent.java:2842)
	at java.awt.Component.processEvent(Component.java:6282)
	at java.awt.Container.processEvent(Container.java:2229)
	at java.awt.Component.dispatchEventImpl(Component.java:4861)
	at java.awt.Container.dispatchEventImpl(Container.java:2287)
	at java.awt.Component.dispatchEvent(Component.java:4687)
	at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1895)
	at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:762)
	at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1027)
	at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:899)
	at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:727)
	at java.awt.Component.dispatchEventImpl(Component.java:4731)
	at java.awt.Container.dispatchEventImpl(Container.java:2287)
	at java.awt.Window.dispatchEventImpl(Window.java:2719)
	at java.awt.Component.dispatchEvent(Component.java:4687)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:729)
	at java.awt.EventQueue.access$200(EventQueue.java:103)
	at java.awt.EventQueue$3.run(EventQueue.java:688)
	at java.awt.EventQueue$3.run(EventQueue.java:686)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
	at java.awt.EventQueue$4.run(EventQueue.java:702)
	at java.awt.EventQueue$4.run(EventQueue.java:700)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:699)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
[catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:154)
	at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:182)
	at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:221)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:219)
	at java.awt.Dialog.show(Dialog.java:1082)
	at org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:1076)
	at org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:1126)
	at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:1098)
	at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:128)
	at org.openide.util.Mutex.doEventAccess(Mutex.java:1363)
	at org.openide.util.Mutex.readAccess(Mutex.java:273)
	at org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java:1083)
	at java.awt.Component.show(Component.java:1651)
	at java.awt.Component.setVisible(Component.java:1603)
	at java.awt.Window.setVisible(Window.java:1014)
	at java.awt.Dialog.setVisible(Dialog.java:1005)
	at org.netbeans.core.windows.services.DialogDisplayerImpl$1AWTQuery.showDialog(DialogDisplayerImpl.java:260)
	at org.netbeans.core.windows.services.DialogDisplayerImpl.notify(DialogDisplayerImpl.java:276)
	at org.netbeans.core.windows.services.DialogDisplayerImpl.notify(DialogDisplayerImpl.java:167)
	at org.openide.loaders.TemplateWizard.instantiateImpl(TemplateWizard.java:504)
	at org.openide.loaders.TemplateWizard.instantiate(TemplateWizard.java:392)
	at org.netbeans.modules.cnd.remote.projectui.actions.NewRemoteProjectPerformer$2.run(NewRemoteProjectPerformer.java:141)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:727)
	at java.awt.EventQueue.access$200(EventQueue.java:103)
	at java.awt.EventQueue$3.run(EventQueue.java:688)
	at java.awt.EventQueue$3.run(EventQueue.java:686)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:697)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Comment 1 Alexander Simon 2013-04-29 06:36:47 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/d7d42282591a