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 217454 - NullPointerException at org.netbeans.modules.javascript2.editor.hints.JsConventionRule$ConventionVisitor.checkSemicolon
Summary: NullPointerException at org.netbeans.modules.javascript2.editor.hints.JsConve...
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-27 10:05 UTC by zeloras
Modified: 2012-08-30 02:12 UTC (History)
10 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 191873


Attachments
stacktrace (2.70 KB, text/plain)
2012-08-27 10:05 UTC, zeloras
Details

Note You need to log in before you can comment on or make changes to this bug.
Description zeloras 2012-08-27 10:05:32 UTC
This bug was originally marked as duplicate of bug 216709, 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 201208260001)
VM: Java HotSpot(TM) Client VM, 22.0-b10, Java(TM) SE Runtime Environment, 1.7.0_02-b13
OS: Linux

User Comments:
karel_barel: switched to another file

GUEST: I think it has something to do with improperly ended tags

karel_barel: typed "!" in 

<a n:href="!delete ...

paolosca: Editing a mixed html php file.

rozwell: tried to copy 3 files via projects window/tab

vriha: typing in embedded js code in jsf xhtml page

zeloras: insert copy text in smarty template

GUEST: opening a file

zeloras: open .tpl file

GUEST: I think it has something to do with the JS not understanding the PHP that was put in: var is_logged_in = <?php echo isset( $registry->member['id'] ) ? "'" . $registry->member['id'] . "'" : 'false' ?>;
		var base_url = "<?php echo URL ?>";
		var static_url = "<?php echo STATIC_URL ?>";
		var cookie_url = "<?php echo COOKIE_URL ?>";
		var main_url = "<?php echo BASE_URL ?>";
		var server_time = "<?php echo (time(  ) + (5*60*60) + date('I')*60*60) ?>";

GUEST: Probably has something to do with the framework I made that uses <INCLUDE="path/to/file">

rozwell: clicked on a tab with .php file

karel_barel: switched to another file using <Ctrl> + <Tab>

padraigdoran: alt-tab




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.javascript2.editor.hints.JsConventionRule$ConventionVisitor.checkSemicolon(JsConventionRule.java:176)
   at org.netbeans.modules.javascript2.editor.hints.JsConventionRule$ConventionVisitor.visit(JsConventionRule.java:332)
   at com.oracle.nashorn.ir.ExecuteNode.accept(ExecuteNode.java:77)
   at com.oracle.nashorn.ir.FunctionNode.accept(FunctionNode.java:305)
   at com.oracle.nashorn.ir.FunctionNode.accept(FunctionNode.java:301)
   at org.netbeans.modules.javascript2.editor.hints.JsConventionRule$ConventionVisitor.process(JsConventionRule.java:161)
Comment 1 zeloras 2012-08-27 10:05:36 UTC
Created attachment 123601 [details]
stacktrace
Comment 2 Petr Pisl 2012-08-28 15:08:48 UTC
Should be fixed now.
http://hg.netbeans.org/web-main/rev/44c9301df677
Comment 3 Quality Engineering 2012-08-30 02:12:09 UTC
Integrated into 'main-golden', will be available in build *201208300001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/44c9301df677
User: Petr Pisl <ppisl@netbeans.org>
Log: #217454 - NullPointerException at org.netbeans.modules.javascript2.editor.hints.JsConventionRule$ConventionVisitor.checkSemicolon