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.
When I use a variable to create an instance of a class like this: $t = new $classname; I get an exception. This seems to work in 6.7, but throws an exception in the latest build. Urkman PS: This is relay a show stopper on our project...
Confirmed, the head of the exception is java.lang.NullPointerException at org.netbeans.modules.php.editor.model.nodes.ASTNodeInfo.toOffsetRange(ASTNodeInfo.java:308) at org.netbeans.modules.php.editor.model.nodes.ASTNodeInfo.toOffsetRange(ASTNodeInfo.java:323) at org.netbeans.modules.php.editor.model.nodes.ASTNodeInfo.getRange(ASTNodeInfo.java:158) at org.netbeans.modules.php.editor.model.impl.OccurenceBuilder.setOccurenceAsCurrent(OccurenceBuilder.java:874)
fixed http://hg.netbeans.org/web-main/rev/c17bdc5bc862
Confirmed as fixed. Thanks... Great work... Urkman
*** Issue 168136 has been marked as a duplicate of this issue. ***