Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 151122 - NullPointerException at org.netbeans.modules.editor.completion.CompletionLayoutPopup.isEnoughSpace
NullPointerException at org.netbeans.modules.editor.completion.CompletionLayo...
Product: editor
Classification: Unclassified
Component: Completion & Templates
All All
: P3 (vote)
: 6.x
Assigned To: Dusan Balek
EXCEPTIONS_REPORT, 65fixes2-verified
Depends on:
  Show dependency treegraph
Reported: 2008-10-23 11:11 UTC by Jiri Prox
Modified: 2009-02-19 20:45 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT

stacktrace (1.42 KB, text/plain)
2008-10-23 11:11 UTC, Jiri Prox
stacktrace (31 bytes, text/plain)
2008-11-06 09:17 UTC, Jiri Prox

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Prox 2008-10-23 11:11:32 UTC
Build: NetBeans IDE 6.5 RC1 (Build 200810220101)
VM: Java HotSpot(TM) Client VM, 11.0-b13, Java(TM) SE Runtime Environment, 1.6.0_10-rc-b26
OS: Linux, 2.6.22-15-generic, i386

User Comments:
jiriprox: NPE when invoking javadoc completion (ctrl-shift-space) on String

gekkothelizard: pressed ENTER in code completion popup window

gekkothelizard: pressed ENTER in code completion popup window

rdelaplante: In orm.xml I pressed enter just before <entity class="...  and then started to type <named-query.  Code completion helped fill in:    <named-query name=""   (no closing bracket yet) then this exception was thrown

GUEST: editing php code

rdelaplante: My line looks like this:

assertTrue(themes.length|)  where | is the cusor.  I think I pressed ctrl-space to get it to complete with ()?

rdelaplante: On a blank line between two methods I typed   this.setUp   and got this exception

gekkothelizard: I pressed ctrl+space.

gekkothelizard: I was just typing some code

gekkothelizard: I was typing

rdelaplante: I was typing as code completion window popped up.  I wanted  .length  so I started to type  lg  which is not correct.  This exception window popped up

gekkothelizard: I was using ctrl+space to complete the name of a method. Aside from the exception everything worked ok.

GUEST: Clicked Show Source option when editing a PHP file. I was on a blank line if that matters.

GUEST: Clicked Show Documentation option from Source menu in a PHP file. This exception gets thrown anywhere on the page it seems.

GUEST: pressed Ctrl+Shift+Space in line

with cursor in '|' position

jiriprox: NPE when invoking javadoc completion (ctrl-shift-space) on String

        at org.netbeans.modules.editor.completion.CompletionLayoutPopup.isEnoughSpace(
        at org.netbeans.modules.editor.completion.CompletionLayoutPopup.showAlongOrNextOccupiedBounds(
        at org.netbeans.modules.editor.completion.CompletionLayout.updateLayout(
        at org.netbeans.modules.editor.completion.CompletionLayout$
        at org.netbeans.modules.editor.completion.CompletionLayout.showDocumentation(
        at org.netbeans.modules.editor.completion.CompletionImpl$
Comment 1 Jiri Prox 2008-10-23 11:11:52 UTC
Created attachment 72526 [details]
Comment 2 Jiri Prox 2008-10-23 11:13:16 UTC
Steps to reproduce:
1) set javadoc completion to be displayed new to CC window 
2) put caret over String
3) invoke javadoc completion (ctrl-shift-space)
Comment 3 Vitezslav Stejskal 2008-10-23 12:48:43 UTC
Reproducible in a dev build. Should this be fixed for 6.5?
Comment 4 Jiri Prox 2008-10-23 12:52:57 UTC
No, it is enough to fix this to 7.0,
I suppose the fix won't be dangerous, so this is imho good candidate for the patch
Comment 5 Jiri Prox 2008-11-06 09:17:20 UTC
Build: NetBeans IDE Dev (Build 081105)
VM: Java HotSpot(TM) Client VM, 11.0-b13, Java(TM) SE Runtime Environment, 1.6.0_10-rc-b26
OS: Linux, 2.6.22-15-generic, i386

User Comments: 

Comment 6 Jiri Prox 2008-11-06 09:17:31 UTC
Created attachment 73352 [details]
Comment 7 pgebauer 2008-11-24 09:31:20 UTC
The issue didn't pass the nomination process by nomination cut-off date. It has been marked as 65fixes2-candidate.
Comment 8 Dusan Balek 2008-11-24 13:14:11 UTC

changeset 911aba6eb8fc in main
Comment 9 Jiri Prox 2009-01-13 10:23:27 UTC
verified in
Product Version: NetBeans IDE Dev (Build 20090112033331)
Java: 1.6.0_11; Java HotSpot(TM) Client VM 11.0-b16
System: Linux version 2.6.24-23-generic running on i386; UTF-8; en_US (nb)
Comment 10 pgebauer 2009-01-13 15:09:42 UTC
The fix has been ported into the release65_fixes repository.

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo