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 - NPE if test opens old project
Summary: NPE if test opens old project
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.2
Hardware: PC Solaris
: P2 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-29 14:45 UTC by soldatov
Modified: 2016-09-01 01:53 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
old project (60.00 KB, application/x-tar)
2016-08-29 14:46 UTC, soldatov
Details

Note You need to log in before you can comment on or make changes to this bug.
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