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 6.5 (Build 200811100001) VM: Java HotSpot(TM) Client VM, 10.0-b19, Java(TM) SE Runtime Environment, 1.6.0_05-b13 OS: Linux, 2.6.9-67.0.15.EL.cernsmp, i386 User Comments: rickvanderzwet: Expanding freshly created project, based of existing CVS checkout with Makefile Stacktrace: java.lang.NullPointerException at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.onFileIncluded(ProjectBase.java:1079) at org.netbeans.modules.cnd.modelimpl.parser.apt.APTParseFileWalker.includeAction(APTParseFileWalker.java:138) at org.netbeans.modules.cnd.modelimpl.parser.apt.APTProjectFileBasedWalker.include(APTProjectFileBasedWalker.java:93) at org.netbeans.modules.cnd.apt.support.APTAbstractWalker.onInclude(APTAbstractWalker.java:86) at org.netbeans.modules.cnd.apt.support.APTWalker.onAPT(APTWalker.java:269) at org.netbeans.modules.cnd.apt.support.APTWalker.visit(APTWalker.java:231)
Created attachment 74465 [details] stacktrace
need to investigate why FileContainer.Entry entry = getFileContainer().getEntry(csmFile.getBuffer().getFile()); returns null
This issue has already 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=130407
Does not repeat. Most likely fixed as a side effect of #153876 fix
Build: NetBeans IDE Dev (Build 200902101401) VM: OpenJDK 64-Bit Server VM, 1.6.0_0-b11, OpenJDK Runtime Environment, 1.6.0_0-b11 OS: Linux, 2.6.27.7-9-default, amd64 User Comments: Stacktrace: java.lang.NullPointerException at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.onFileIncluded(ProjectBase.java:1108) at org.netbeans.modules.cnd.modelimpl.parser.apt.APTParseFileWalker.includeAction(APTParseFileWalker.java:152) at org.netbeans.modules.cnd.modelimpl.parser.apt.APTProjectFileBasedWalker.include(APTProjectFileBasedWalker.java:93) at org.netbeans.modules.cnd.apt.support.APTAbstractWalker.onInclude(APTAbstractWalker.java:87) at org.netbeans.modules.cnd.apt.support.APTWalker.onAPT(APTWalker.java:274) at org.netbeans.modules.cnd.apt.support.APTWalker.visit(APTWalker.java:236)
Created attachment 76913 [details] stacktrace
Build: NetBeans IDE Dev (Build 200902101401) VM: OpenJDK 64-Bit Server VM, 1.6.0_0-b11, OpenJDK Runtime Environment, 1.6.0_0-b11 OS: Linux, 2.6.27.7-9-default, amd64 User Comments: Stacktrace: java.lang.NullPointerException at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.onFileIncluded(ProjectBase.java:1108) at org.netbeans.modules.cnd.modelimpl.parser.apt.APTParseFileWalker.includeAction(APTParseFileWalker.java:152) at org.netbeans.modules.cnd.modelimpl.parser.apt.APTProjectFileBasedWalker.include(APTProjectFileBasedWalker.java:93) at org.netbeans.modules.cnd.apt.support.APTAbstractWalker.onInclude(APTAbstractWalker.java:87) at org.netbeans.modules.cnd.apt.support.APTWalker.onAPT(APTWalker.java:274) at org.netbeans.modules.cnd.apt.support.APTWalker.toNextNode(APTWalker.java:381)
Created attachment 76914 [details] stacktrace
reopen, because last report is on recent build 200902101401
Last stack was got using version of Feb 10, 2009, so the NPE at the line ProjectBase.java:1108 means that getFileContainer().getEntry(csmFile.getBuffer().getFile()); (which is now on line 1117) returns null
I think that changes made on Feb 10 are not in Feb 10 build => most likely the line was: synchronized (entry.getLock()) { + we've seen once such error Looks like dummy container was used and it doesn't have any data => it's get return "null" => NPE on sync(null)
That's what I meant. Not getFileContainer(), but getFileContainer().getEntry(...) returns null.
So far we are unable to reproduce it in a stable way. If anybody knows how to reproduce this more or less stable, please share your knowledge.
fixed, change set: http://hg.netbeans.org/main/rev/b85c4840d9d5
Integrated into 'main-golden', will be available in build *200902180201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/b85c4840d9d5 User: Alexander Simon <alexvsimon@netbeans.org> Log: fixed IZ#154437:NullPointerException at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.onFileIncluded