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 216770 - NullPointerException at org.netbeans.modules.javascript2.editor.hints.JsConventionRule$ConventionVisitor.process
Summary: NullPointerException at org.netbeans.modules.javascript2.editor.hints.JsConve...
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-13 07:07 UTC by ehsavoie
Modified: 2012-09-26 19:56 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 191490


Attachments
stacktrace (2.27 KB, text/plain)
2012-08-13 07:07 UTC, ehsavoie
Details
stacktrace (2.27 KB, text/plain)
2012-08-14 08:21 UTC, Jiri Prox
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ehsavoie 2012-08-13 07:07:20 UTC
Build: NetBeans IDE Dev (Build 201208120001)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.1-b03, Java(TM) SE Runtime Environment, 1.7.0_05-b05
OS: Linux

Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.javascript2.editor.hints.JsConventionRule$ConventionVisitor.process(JsConventionRule.java:137)
   at org.netbeans.modules.javascript2.editor.hints.JsConventionRule.computeHintsImpl(JsConventionRule.java:74)
   at org.netbeans.modules.javascript2.editor.hints.JsHintsProvider.computeHints(JsHintsProvider.java:73)
   at org.netbeans.modules.csl.hints.infrastructure.HintsTask$1.run(HintsTask.java:126)
   at org.netbeans.modules.csl.hints.infrastructure.HintsTask$1.run(HintsTask.java:95)
   at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:583)
Comment 1 ehsavoie 2012-08-13 07:07:22 UTC
Created attachment 123023 [details]
stacktrace
Comment 2 Jiri Prox 2012-08-14 08:21:47 UTC
Created attachment 123080 [details]
stacktrace

NPE when opening file containign fragment of HTML page
Comment 3 Jiri Prox 2012-08-14 08:24:33 UTC
Sample file:
<html>    
    <body>
        <a href='test.php' onclick='return confirm("Opravdu smazat?")'>Smazat</a>
    </body>
</html>
Comment 4 Vladimir Riha 2012-08-14 08:57:41 UTC
works in NetBeans IDE Dev (Build EaselCSS-490-on-20120814)
Comment 5 Exceptions Reporter 2012-08-15 11:03:48 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=191490
Comment 6 Petr Hejl 2012-09-26 19:56:58 UTC
Already fixed by http://hg.netbeans.org/web-main/rev/229797.