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 267750

Summary: NPE if test opens old project
Product: cnd Reporter: soldatov <soldatov>
Component: ProjectAssignee: Alexander Simon <alexvsimon>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 8.2   
Hardware: PC   
OS: Solaris   
Issue Type: DEFECT Exception Reporter:
Attachments: old project

Description soldatov 2016-08-29 14:45:19 UTC
Scenario:
- Unpack attached project (project from QA testbase)
- Open project in NetBeans
===> java.lang.NullPointerException

SEVERE [org.openide.util.RequestProcessor]: Error in RequestProcessor org.netbeans.modules.cnd.makeproject.configurations.ConfigurationXMLReader$1
java.lang.NullPointerException: The folder parameter cannot be null
	at org.openide.util.Parameters.notNull(Parameters.java:89)
	at org.openide.filesystems.FileUtil.createData(FileUtil.java:748)
	at org.netbeans.modules.cnd.makeproject.StandardHeadersProjectMetadataFactory.writeStandardHeaders(StandardHeadersProjectMetadataFactory.java:115)
	at org.netbeans.modules.cnd.makeproject.StandardHeadersProjectMetadataFactory.reload(StandardHeadersProjectMetadataFactory.java:89)
	at org.netbeans.modules.cnd.makeproject.StandardHeadersProjectMetadataFactory.read(StandardHeadersProjectMetadataFactory.java:67)
	at org.netbeans.modules.cnd.makeproject.configurations.ConfigurationXMLReader$1.lambda$runImpl$116(ConfigurationXMLReader.java:141)
	at java.lang.Iterable.forEach(Iterable.java:75)
	at org.netbeans.modules.cnd.makeproject.configurations.ConfigurationXMLReader$1.runImpl(ConfigurationXMLReader.java:140)
	at org.netbeans.modules.cnd.utils.NamedRunnable.run(NamedRunnable.java:62)
Caused: org.openide.util.RequestProcessor$SlowItem: task failed due to
	at org.openide.util.RequestProcessor.post(RequestProcessor.java:420)
	at org.netbeans.modules.cnd.makeproject.configurations.ConfigurationXMLReader.read(ConfigurationXMLReader.java:120)
	at org.netbeans.modules.cnd.makeproject.api.configurations.ConfigurationDescriptorProvider.getConfigurationDescriptor(ConfigurationDescriptorProvider.java:154)
	at org.netbeans.modules.cnd.makeproject.api.configurations.ConfigurationDescriptorProvider.opened(ConfigurationDescriptorProvider.java:419)
	at org.netbeans.modules.cnd.makeproject.MakeProjectImpl.lambda$onProjectOpened$66(MakeProjectImpl.java:1477)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)
	at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68)
	at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2058)
Comment 1 soldatov 2016-08-29 14:46:15 UTC
Created attachment 161806 [details]
old project
Comment 2 Alexander Simon 2016-08-31 10:18:38 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/309cd4d5fe23
Comment 3 Quality Engineering 2016-09-01 01:53:03 UTC
Integrated into 'main-silver', will be available in build *201609010002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/309cd4d5fe23
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #267750 NPE if test opens old project