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 131023

Summary: Do not allow the same folder for Sources and Copy to Folder fields
Product: php Reporter: Victoria Zhukovskaya <victoriaz>
Component: ProjectAssignee: Tomas Mysik <tmysik>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

Description Victoria Zhukovskaya 2008-03-25 13:29:58 UTC
Build 080325
NPE when create php project

1. Create PHP Project - invoke from main menu File -> New Project...
2. Choose project PHP Application, press Next >
3. Don't edit default values on Name and Location view of New PHP Project wizard. See  Sources have location <user
project folder>\web
4. Press Next >
5. Set check box into true on Server Configuration view and select f.e. C:\New Folder
6. Press back and set the same location (C:\New Folder) for Sources.
7. Press Finish 



java.lang.NullPointerException

	at 
org.netbeans.modules.php.project.ui.wizards.NewPhpProjectWizardIterator.configureSources(NewPhpProjectWizardIterator.java:238)
	at
org.netbeans.modules.php.project.ui.wizards.NewPhpProjectWizardIterator.createProject(NewPhpProjectWizardIterator.java:213)
	at
org.netbeans.modules.php.project.ui.wizards.NewPhpProjectWizardIterator.instantiate(NewPhpProjectWizardIterator.java:124)
	at org.openide.loaders.TemplateWizard$InstantiatingIteratorBridge.instantiate(TemplateWizard.java:1023)
	at org.openide.loaders.TemplateWizard.handleInstantiate(TemplateWizard.java:595)
	at org.openide.loaders.TemplateWizard.instantiateNewObjects(TemplateWizard.java:416)
	at org.openide.loaders.TemplateWizardIterImpl.instantiate(TemplateWizardIterImpl.java:253)
	at org.openide.loaders.TemplateWizardIteratorWrapper.instantiate(TemplateWizardIteratorWrapper.java:165)
	at org.openide.WizardDescriptor.callInstantiateOpen(WizardDescriptor.java:1384)
	at org.openide.WizardDescriptor.callInstantiate(WizardDescriptor.java:1341)
	at org.openide.WizardDescriptor.access$1600(WizardDescriptor.java:119)
	at org.openide.WizardDescriptor$Listener$2$1.run(WizardDescriptor.java:1908)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)
Comment 1 Tomas Mysik 2008-03-25 14:08:16 UTC
Should be easy to fix.
Comment 2 Tomas Mysik 2008-04-07 10:39:28 UTC
Fixed.

changeset:   77024:be2daf841a97
user:        Tomas Mysik <tmysik@netbeans.org>
date:        Sun Apr 06 18:12:46 2008 +0200
summary:     #131023: Do not allow the same folder for Sources and Copy to Folder fields
Comment 3 Victoria Zhukovskaya 2008-04-07 14:18:24 UTC
verified in Build 080407. No exceptions.
Comment 4 Tomas Mysik 2008-04-08 09:57:59 UTC
*** Issue 132189 has been marked as a duplicate of this issue. ***
Comment 5 Tomas Mysik 2008-04-09 08:32:43 UTC
*** Issue 132189 has been marked as a duplicate of this issue. ***