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 217740 - NullPointerException at com.sun.tools.javac.comp.MemberEnter.complete
Summary: NullPointerException at com.sun.tools.javac.comp.MemberEnter.complete
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-03 11:50 UTC by Sergey Petrov
Modified: 2013-06-23 02:09 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 192058


Attachments
stacktrace (5.20 KB, text/plain)
2012-09-03 11:50 UTC, Sergey Petrov
Details
stacktrace (4.65 KB, text/plain)
2012-10-19 12:59 UTC, Martin Entlicher
Details
stacktrace (3.99 KB, text/plain)
2013-01-22 20:37 UTC, lvr123
Details
stacktrace (4.27 KB, text/plain)
2013-01-26 17:55 UTC, Exceptions Reporter
Details
stacktrace (7.62 KB, text/plain)
2013-06-20 06:25 UTC, markiewb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Petrov 2012-09-03 11:50:36 UTC
This bug was originally marked as duplicate of bug 205669, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 20120903-8d2891f6dce7)
VM: Java HotSpot(TM) Client VM, 22.1-b02, Java(TM) SE Runtime Environment, 1.7.0_03-b05
OS: Windows 7

Stacktrace: 
java.lang.NullPointerException
   at com.sun.tools.javac.comp.MemberEnter.complete(MemberEnter.java:1060)
   at com.sun.tools.javac.code.Symbol.complete(Symbol.java:422)
   at com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:831)
   at com.sun.tools.javac.code.Symbol$ClassSymbol.flags(Symbol.java:771)
   at com.sun.tools.javac.code.Symbol$TypeSymbol.getEnclosedElements(Symbol.java:587)
   at javax.lang.model.util.ElementScanner6.visitType(ElementScanner6.java:171)
Comment 1 Sergey Petrov 2012-09-03 11:50:38 UTC
Created attachment 123821 [details]
stacktrace
Comment 2 Dusan Balek 2012-09-04 13:12:14 UTC
Hard to fix without a reproducible test case. Are you able to reproduce the
issue? If so, could you please create a simple test case and attach it to the
issue? Thanks.
Comment 3 Sergey Petrov 2012-09-04 14:46:09 UTC
got it only once (it was reproducible with copy-paste at one ide session with one open class but no more)
Comment 4 Martin Entlicher 2012-10-19 12:59:18 UTC
Created attachment 126190 [details]
stacktrace

Editing a file, doing copy/paste.
Comment 5 Exceptions Reporter 2012-11-05 15:29:10 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=192058
Comment 6 lvr123 2013-01-22 20:37:41 UTC
Created attachment 130503 [details]
stacktrace

editing the file ZTagField.java
Comment 7 Exceptions Reporter 2013-01-26 17:55:44 UTC
Created attachment 130685 [details]
stacktrace
Comment 8 markiewb 2013-06-20 06:25:56 UTC
Created attachment 136059 [details]
stacktrace

Replace content in java editor
Comment 9 Exceptions Reporter 2013-06-21 09:35:00 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=192058
Comment 11 Quality Engineering 2013-06-23 02:09:27 UTC
Integrated into 'main-golden', will be available in build *201306222301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/c058af08161d
User: Dusan Balek <dbalek@netbeans.org>
Log: Issues #205670, #217469, #217740, and #218762 - fixed.