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.
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)
Created attachment 123601 [details] stacktrace
Should be fixed now. http://hg.netbeans.org/web-main/rev/44c9301df677
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