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 66929

Summary: NPE from NbPlatform.isDefault
Product: apisupport Reporter: Jiri Skrivanek <jskrivanek>
Component: ProjectAssignee: Jesse Glick <jglick>
Status: VERIFIED FIXED    
Severity: blocker Keywords: SIMPLEFIX
Priority: P2    
Version: 5.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Attachments: Stack trace

Description Jiri Skrivanek 2005-10-17 09:03:25 UTC
Code completion of NetBeans projects is unusable because anytime
NullPointerException is thrown. To reproduce:

- open a NetBeans project
- open a java file from the project
- call code completion on any statement and exception is thrown.

Build 20051016-2108, JDK1.5.0_05, WindowsXP.
Comment 1 Jiri Skrivanek 2005-10-17 09:04:34 UTC
Created attachment 26017 [details]
Stack trace
Comment 2 Jesse Glick 2005-10-17 23:16:53 UTC
I cannot reproduce in this manner, but I did have it happen to me in a different
context (unreproducibly). Anyway, there is a trivial fix.
Comment 3 Jesse Glick 2005-10-17 23:17:15 UTC
More useful summary.
Comment 4 Jesse Glick 2005-10-18 19:10:10 UTC
committed   * Up-To-Date  1.21       
apisupport/project/src/org/netbeans/modules/apisupport/project/universe/NbPlatform.java
committed   * Up-To-Date  1.11       
apisupport/project/test/unit/src/org/netbeans/modules/apisupport/project/universe/NbPlatformTest.java
Comment 5 Jiri Skrivanek 2005-10-19 08:19:58 UTC
Verified in build 20051019-0306.
Comment 6 pzajac 2005-10-24 07:24:00 UTC
*** Issue 67373 has been marked as a duplicate of this issue. ***
Comment 7 pzajac 2005-10-24 09:32:13 UTC
*** Issue 67375 has been marked as a duplicate of this issue. ***