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.
Build: NetBeans IDE Dev (Build 201108210601) VM: Java HotSpot(TM) Client VM, 21.0-b17, Java(TM) SE Runtime Environment, 1.7.0-b147 OS: Windows XP User Comments: vriha: Reproducible. In PHP file, invoke cc at the place of "|". Functions like __construct() are offered, if I select one and press enter, exception is shown <?php /** * Description of classB * * @author tester */ class classB { //put your code here public $kocka; public function | public static function run() { print "Works"; } } ?> Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.lib2.highlighting.CompoundAttributes.getAttribute(CompoundAttributes.java:118) at org.netbeans.modules.editor.lib2.view.ViewUtils.getFont(ViewUtils.java:162) at org.netbeans.modules.editor.lib2.view.DocumentViewOp.createTextLayout(DocumentViewOp.java:1089) at org.netbeans.modules.editor.lib2.view.ParagraphViewChildren.fixSpansAndRepaint(ParagraphViewChildren.java:307) at org.netbeans.modules.editor.lib2.view.ParagraphViewChildren.ensureIndexMeasured(ParagraphViewChildren.java:237) at org.netbeans.modules.editor.lib2.view.ParagraphViewChildren.modelToViewChecked(ParagraphViewChildren.java:471)
Created attachment 110129 [details] stacktrace
Created attachment 110185 [details] stacktrace selecting line of code and trying to wrap it in if statement
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=180720
Created attachment 110323 [details] stacktrace auto create construct
Created attachment 110337 [details] stacktrace Autocompletion on keyword "catch". Error happened on typing "enter"
Created attachment 110339 [details] stacktrace Cause: Formatting the code below (php file), happened to me several times ---Code start--- <?php class Foo { /** * Some PhpDoc * @param string $s * @param int $i * @param float $f */ function bar($s, $i, $f) { sds ssdsd} function foobar() { $string = ""; $int = 42; $s = ""; $float = 3.1456; } } ?> --- code end---
This bug already has 10 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=180720
Created attachment 110430 [details] stacktrace Reformatting php web page...
Created attachment 110531 [details] stacktrace code completion of endswitch
Created attachment 110606 [details] stacktrace While editing a php file in one big project, I noticed that when use the code completion feature, when I press enter or select by mouse the syndax I like, netbeans completes the method but I doesn't fill the parameters. After that, I closed netbeans and opened it again to test if it would work normaly. I opened the same file and tried to complete the same method. What I got was an exception: "A java.lang.NullPointerException exception has occurred."
*** Bug 201933 has been marked as a duplicate of this bug. ***
Created attachment 110693 [details] stacktrace code completion of php function var_dump() $client->setCreatedCallback(function (GearmanClient $client) { var_| }); selected from the list var_dump($client), hit enter
Please test today's fix (once it gets into dev builds) of issue #200744 and if the problem would persist please reopen the issue. Thanks. *** This bug has been marked as a duplicate of bug 200744 ***