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 56932 - NPE:ImportImpl.getImportedElements after CTRL+SPACE in editor
Summary: NPE:ImportImpl.getImportedElements after CTRL+SPACE in editor
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords: RANDOM
: 57789 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-03-24 13:40 UTC by Lukas Hasik
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NPE at org.netbeans.modules.javacore.jmiimpl.javamodel.ImportImpl.getImportedElements(ImportImpl.java:337) (1.37 KB, text/plain)
2005-03-24 13:43 UTC, Lukas Hasik
Details
project (55.19 KB, application/octet-stream)
2005-03-24 14:27 UTC, Lukas Hasik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Hasik 2005-03-24 13:40:11 UTC
200503221900, jdk1.4.2_06

I wanted to involve code completion in editor by pressing CTRL+SPACE on a method
name. There was 'Please wait' for a while and then NPE.
Comment 1 Lukas Hasik 2005-03-24 13:43:40 UTC
Created attachment 21100 [details]
NPE at org.netbeans.modules.javacore.jmiimpl.javamodel.ImportImpl.getImportedElements(ImportImpl.java:337)
Comment 2 Jan Becicka 2005-03-24 14:13:08 UTC
Please attach more details. Where you invoke CC? Can you attach your project?
Comment 3 Lukas Hasik 2005-03-24 14:27:15 UTC
Created attachment 21104 [details]
project
Comment 4 Lukas Hasik 2005-03-24 14:34:05 UTC
I attached the project. It's j2me project so you will need to install mobility
pack for it :( I'm able to reproduce the issue in file bus.TestInput on line 21
textField = new TextBox("File to print", null, 32, TextField.ANY);

when I do CC on TextBox and cursor is on first half of the word then CC work but
when I try CC (CTRL+space) when cursor is behind 'o' then NPE appears.

You can download the latest q-build from
http://www.netbeans.info/downloads/download.php?a=n&p=1&rv=4.1&os=&lang=&bt=5&step=2
but build 0322+mobility0323 wasn't published yet 
Comment 5 Jan Becicka 2005-03-29 13:54:18 UTC
Checking in ImportImpl.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/ImportImpl.java,v
 <--  ImportImpl.java
new revision: 1.21; previous revision: 1.20
done
Comment 6 Tomas Hurka 2005-04-20 17:06:56 UTC
*** Issue 57789 has been marked as a duplicate of this issue. ***
Comment 7 Lukas Hasik 2005-05-12 15:24:12 UTC
seems to be fixed
Comment 8 Quality Engineering 2007-09-20 12:07:07 UTC
Reorganization of java component