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.
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)
Created attachment 108058 [details] stacktrace
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.
*** Bug 197708 has been marked as a duplicate of this bug. ***
According to issue 197708, which is a duplicate of this one, this stack can be found in unit tests log
http://hg.netbeans.org/cnd-main/rev/eaba0cd89066
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
http://hg.netbeans.org/cnd-main/rev/160538645000
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