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 90755

Summary: NPE when try to use code-completion in Code Templates
Product: java Reporter: Martin Krauskopf <mkrauskopf>
Component: EditorAssignee: Dusan Balek <dbalek>
Status: RESOLVED FIXED    
Severity: blocker Keywords: REGRESSION
Priority: P2    
Version: 5.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: NPE.txt

Description Martin Krauskopf 2006-12-07 13:45:31 UTC
fresh build, linux, jdk60-b104

1) Menu -> Tools -> Options -> Editor -> Code Templates
2) New Temlated named e.g. 'a'
3) Try to use code-completion in "Expadned Text" area

Attached NPE is thrown.
Comment 1 Martin Krauskopf 2006-12-07 13:46:28 UTC
Created attachment 36552 [details]
NPE.txt
Comment 2 Dusan Balek 2007-02-01 15:05:33 UTC
Fixed.

Checking in JavaCompletionProvider.java;
/cvs/java/editor/src/org/netbeans/modules/editor/java/JavaCompletionProvider.java,v
 <--  JavaCompletionProvider.java
new revision: 1.78; previous revision: 1.77
done
Comment 3 Vitezslav Stejskal 2007-02-05 22:45:08 UTC
*** Issue 94464 has been marked as a duplicate of this issue. ***