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 191913 - Exception: null folder file object
Summary: Exception: null folder file object
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-13 12:36 UTC by tbrunhoff
Modified: 2010-12-12 06:08 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 172868


Attachments
stacktrace (687 bytes, text/plain)
2010-11-13 12:36 UTC, tbrunhoff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tbrunhoff 2010-11-13 12:36:01 UTC
This issue was reported manually by vv159170.
It already has 8 duplicates 


Build: NetBeans IDE Dev (Build 201009291311)
VM: Java HotSpot(TM) 64-Bit Server VM, 16.0-b13, Java(TM) SE Runtime Environment, 1.6.0_18-b07
OS: Linux

User Comments:
GUEST: opening a project.

GUEST: selecting "open required projects"

tbrunhoff: creating a new project from existing sources and doing custom configuration.

tbrunhoff: ide startup.

GUEST: I've been splitting things into separate projects and reconstructing some by hand based on other projects generated by the ide. Presumably I've made some mistakes and this represents one of them. The exception does not point at the problem, so it would seem that there ought to be a fix for this. That is, the parser for configurations.xml should be a bit more robust, and protect against errors like mine.

GUEST: opening a project

GUEST: starting the ide




Stacktrace: 
java.lang.Exception: null folder file object
   at org.netbeans.modules.cnd.utils.CndUtils.assertTrue(CndUtils.java:168)
   at org.netbeans.modules.cnd.utils.CndUtils.assertNotNull(CndUtils.java:123)
   at org.netbeans.modules.cnd.makeproject.api.configurations.Folder.refreshDiskFolder(Folder.java:146)
   at org.netbeans.modules.cnd.makeproject.api.configurations.Folder.refreshDiskFolder(Folder.java:245)
   at org.netbeans.modules.cnd.makeproject.configurations.ConfigurationXMLReader$3.run(ConfigurationXMLReader.java:245)
   at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
Comment 1 tbrunhoff 2010-11-13 12:36:04 UTC
Created attachment 102953 [details]
stacktrace
Comment 2 Vladimir Kvashin 2010-12-10 20:10:23 UTC
That was just a wrong assertion. Fixed in cnd-main:
http://hg.netbeans.org/cnd-main/rev/49dcfc7254f9
Comment 3 Quality Engineering 2010-12-11 06:33:07 UTC
Integrated into 'main-golden', will be available in build *201012110001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/f1e75470f70a
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: better diagnostics for #191913 -  Exception: null folder file object
Comment 4 Quality Engineering 2010-12-12 06:08:35 UTC
Integrated into 'main-golden', will be available in build *201012120001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/49dcfc7254f9
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: #191913 -  Exception: null folder file object