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 198257 - NullPointerException at org.netbeans.modules.cnd.utils.cache.CndFileUtils.index
Summary: NullPointerException at org.netbeans.modules.cnd.utils.cache.CndFileUtils.index
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Remote (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
: 197708 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-05-02 15:03 UTC by Vladimir Kvashin
Modified: 2011-05-07 05:36 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 178635


Attachments
stacktrace (11.18 KB, text/plain)
2011-05-02 15:03 UTC, Vladimir Kvashin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Kvashin 2011-05-02 15:03:48 UTC
Build: NetBeans IDE Dev (Build 20110502-1c8cc9b8a31e)
VM: Java HotSpot(TM) Server VM, 19.0-b09, Java(TM) SE Runtime Environment, 1.6.0_23-b05
OS: Linux

User Comments:
vkvashin: NPE occurred after I opened a remote project from Favorites view




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.cnd.utils.cache.CndFileUtils.index(CndFileUtils.java:426)
   at org.netbeans.modules.cnd.utils.cache.CndFileUtils.getFlags(CndFileUtils.java:373)
   at org.netbeans.modules.cnd.utils.cache.CndFileUtils.isExistingFile(CndFileUtils.java:323)
   at org.netbeans.modules.cnd.apt.utils.APTIncludeUtils.isExistingFile(APTIncludeUtils.java:141)
   at org.netbeans.modules.cnd.apt.utils.APTIncludeUtils.resolveFilePath(APTIncludeUtils.java:112)
   at org.netbeans.modules.cnd.apt.impl.support.APTIncludeResolverImpl.resolveFilePath(APTIncludeResolverImpl.java:129)
Comment 1 Vladimir Kvashin 2011-05-02 15:03:56 UTC
Created attachment 108058 [details]
stacktrace
Comment 2 Vladimir Kvashin 2011-05-03 09:25:16 UTC
The reason of the NPE is that some FileObject.getChildren() returned an array that contained null. I guess it's remote file object since the project was on remote.
Comment 3 Vladimir Kvashin 2011-05-05 15:33:34 UTC
*** Bug 197708 has been marked as a duplicate of this bug. ***
Comment 4 Vladimir Kvashin 2011-05-05 15:34:47 UTC
According to issue 197708, which is a duplicate of this one, this stack can be found in unit tests log
Comment 5 Vladimir Kvashin 2011-05-05 16:22:46 UTC
http://hg.netbeans.org/cnd-main/rev/eaba0cd89066
Comment 6 Quality Engineering 2011-05-06 05:09:15 UTC
Integrated into 'main-golden', will be available in build *201105060000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/eaba0cd89066
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: fix for #198257 - NullPointerException at org.netbeans.modules.cnd.utils.cache.CndFileUtils.index
Comment 7 Vladimir Kvashin 2011-05-06 09:09:54 UTC
http://hg.netbeans.org/cnd-main/rev/160538645000
Comment 8 Quality Engineering 2011-05-07 05:36:23 UTC
Integrated into 'main-golden', will be available in build *201105070000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/160538645000
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: fixed #198257 - NullPointerException at org.netbeans.modules.cnd.utils.cache.CndFileUtils.index