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 238312 - NullPointerException at org.netbeans.modules.html.angular.editor.AngularJsDeclarationFinder.getReferenceSpan
Summary: NullPointerException at org.netbeans.modules.html.angular.editor.AngularJsDec...
Status: VERIFIED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: AngularJS (show other bugs)
Version: 8.0
Hardware: All All
: P2 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-13 12:42 UTC by Jiri Skrivanek
Modified: 2013-11-25 09:43 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 205221


Attachments
stacktrace (3.72 KB, text/plain)
2013-11-13 12:42 UTC, Jiri Skrivanek
Details
stacktrace (3.72 KB, text/plain)
2013-11-16 12:54 UTC, Vladimir Riha
Details
stacktrace (3.72 KB, text/plain)
2013-11-20 15:18 UTC, Petr Jiricka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2013-11-13 12:42:38 UTC
Build: NetBeans IDE Dev (Build 201311130002)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.45-b08, Java(TM) SE Runtime Environment, 1.7.0_45-b18
OS: Windows 7

User Comments:
jskrivanek: Create JSON file from template and try to invoke code completion.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.html.angular.editor.AngularJsDeclarationFinder.getReferenceSpan(AngularJsDeclarationFinder.java:144)
   at org.netbeans.modules.javascript2.editor.navigation.DeclarationFinderImpl.getReferenceSpan(DeclarationFinderImpl.java:226)
   at org.netbeans.modules.csl.editor.hyperlink.GoToSupport.identifyActiveFindersLanguage(GoToSupport.java:387)
   at org.netbeans.modules.csl.editor.hyperlink.GoToSupport.getIdentifierSpan(GoToSupport.java:350)
   at org.netbeans.modules.csl.editor.hyperlink.GsfHyperlinkProvider.getHyperlinkSpan(GsfHyperlinkProvider.java:77)
   at org.netbeans.modules.csl.editor.hyperlink.GsfHyperlinkProvider.isHyperlinkPoint(GsfHyperlinkProvider.java:73)
Comment 1 Jiri Skrivanek 2013-11-13 12:42:39 UTC
Created attachment 142129 [details]
stacktrace
Comment 2 Vladimir Riha 2013-11-16 12:54:48 UTC
Created attachment 142259 [details]
stacktrace

having opened JSON file
Comment 3 Vladimir Riha 2013-11-16 12:57:50 UTC
Seems to happen every time you press Ctrl in JSON file, so e.g. saving via Ctrl+S is not possible etc.
Comment 4 Petr Jiricka 2013-11-20 15:18:54 UTC
Created attachment 142414 [details]
stacktrace

Editing a JSON file.
Comment 5 Exceptions Reporter 2013-11-22 12:36:55 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=205221
Comment 6 Petr Pisl 2013-11-22 13:14:29 UTC
Fixed in web-main.