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 204019 - NullPointerException at org.netbeans.api.java.source.JavaSource$JavaSourceAccessorImpl.createTaggedCompilationController
Summary: NullPointerException at org.netbeans.api.java.source.JavaSource$JavaSourceAcc...
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 7.0
Hardware: Macintosh Mac OS X
: P2 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-20 14:45 UTC by Vladimir Riha
Modified: 2011-11-21 13:47 UTC (History)
7 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 182168


Attachments
stacktrace (1.49 KB, text/plain)
2011-10-20 14:45 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2011-10-20 14:45:43 UTC
This bug was originally marked as duplicate of bug 149880, 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 201110190600)
VM: Java HotSpot(TM) 64-Bit Server VM, 20.1-b02-383, Java(TM) SE Runtime Environment, 1.6.0_26-b03-383-11A511c
OS: Mac OS X

User Comments:
GUEST: Nada solo armando un simple ejemplo que viene con el Netbeans

vriha: In JSP file:

<% String var; %><!-- sds d--><% var.|

Invoke cc at the place of "|", then quickly delete the var. and replace it with string in quotes "foo".| and invoke cc at the place of "|". I reproduced it twice.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.api.java.source.JavaSource$JavaSourceAccessorImpl.createTaggedCompilationController(JavaSource.java:744)
   at org.netbeans.modules.java.source.JavaSourceUtilImpl.createTaggedCompilationController(JavaSourceUtilImpl.java:60)
   at org.netbeans.modules.java.preprocessorbridge.spi.JavaSourceUtilImpl$MyAccessor.createTaggedCompilationController(JavaSourceUtilImpl.java:78)
   at org.netbeans.modules.java.preprocessorbridge.api.JavaSourceUtil.createControllerHandle(JavaSourceUtil.java:96)
   at org.netbeans.api.java.source.ui.ElementJavadoc$4.call(ElementJavadoc.java:365)
   at org.netbeans.api.java.source.ui.ElementJavadoc$4.call(ElementJavadoc.java:362)
Comment 1 Vladimir Riha 2011-10-20 14:45:48 UTC
Created attachment 112269 [details]
stacktrace
Comment 2 Vladimir Riha 2011-10-20 14:58:18 UTC
Turns out it happens a lot on Mac while working jsp(f)/tag(f) files.
Comment 3 Jan Lahoda 2011-11-09 13:10:58 UTC
http://hg.netbeans.org/jet-main/rev/e7a209827d94
Comment 4 Quality Engineering 2011-11-10 16:00:01 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/e7a209827d94
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #204019: preventing NPE regarding remote Javadoc and non-Java files.
Comment 5 Vladimir Riha 2011-11-21 13:47:22 UTC
verified