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 131411 - NPE on opening new php block
Summary: NPE on opening new php block
Status: VERIFIED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@php
URL:
Keywords:
Depends on:
Blocks: 131609
  Show dependency tree
 
Reported: 2008-03-28 15:05 UTC by kozlov
Modified: 2008-04-08 12:05 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kozlov 2008-03-28 15:05:32 UTC
Reproduced in buil080328.

Create php file. After closing php tag type <?

NPE occurs:

java.lang.NullPointerException
	at org.netbeans.modules.php.editor.PHPCodeCompletion.findCompletionContext(PHPCodeCompletion.java:118)
	at org.netbeans.modules.php.editor.PHPCodeCompletion.complete(PHPCodeCompletion.java:157)
	at org.netbeans.modules.gsfret.editor.completion.GsfCompletionProvider$JavaCompletionQuery.resolveCompletion(GsfCompletionProvider.java:513)
	at org.netbeans.modules.gsfret.editor.completion.GsfCompletionProvider$JavaCompletionQuery.run(GsfCompletionProvider.java:399)
	at org.netbeans.modules.gsfret.editor.completion.GsfCompletionProvider$JavaCompletionQuery.run(GsfCompletionProvider.java:239)
	at org.netbeans.napi.gsfret.source.Source.runUserActionTask(Source.java:468)
	at org.netbeans.modules.gsfret.editor.completion.GsfCompletionProvider$JavaCompletionQuery.query(GsfCompletionProvider.java:308)
	at org.netbeans.spi.editor.completion.support.AsyncCompletionTask.run(AsyncCompletionTask.java:218)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)
Comment 1 Petr Pisl 2008-03-31 10:00:37 UTC
I can't reproduce it now. Are you able still to reproduce?
Comment 2 Petr Pisl 2008-03-31 10:19:55 UTC
Now I can reproduce as well. I can reproduce it in a blank php file and just write <? in the first line.
Comment 3 Tomasz Slota 2008-04-01 16:01:03 UTC
fixed.

changeset:   76825:f6c2e6241c98
tag:         tip
user:        Tomasz Slota <tslota@netbeans.org>
date:        Tue Apr 01 16:57:55 2008 +0200
summary:     #131411: NPE on opening new php block

Comment 4 kozlov 2008-04-08 12:05:36 UTC
Verified in build080407.