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 68825 - NPE on change platform in NB Module Suite project customizer
Summary: NPE on change platform in NB Module Suite project customizer
Status: VERIFIED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Martin Krauskopf
URL:
Keywords:
: 68984 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-11-16 15:54 UTC by pzajac
Modified: 2005-11-25 13:27 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exception (2.60 KB, text/plain)
2005-11-16 15:56 UTC, pzajac
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pzajac 2005-11-16 15:54:31 UTC
[200511141800]
I don't know exacts steps how to reproduce. But the exception was thrown quite
often. 

For example what I did:
1)Open Project suite
2)Add new platfrom in Netbeans platfrom manager
3)Change the platfrom in project suite
4)Remove platform from Netbeans platform manager
5)Try change the platfrom in project suite 

NPE was thrown
Comment 1 pzajac 2005-11-16 15:56:21 UTC
Created attachment 27007 [details]
exception
Comment 2 Martin Krauskopf 2005-11-16 16:51:18 UTC
We are passing null.
Comment 3 Jesse Glick 2005-11-19 00:57:23 UTC
*** Issue 68984 has been marked as a duplicate of this issue. ***
Comment 4 Martin Krauskopf 2005-11-21 11:53:59 UTC
Presuambly the problem is that creating platform.properties fires a property
change and NbModuleProject tries to reload module-list, but project itself is in
the meantime in inconsistent state, something between standalone and
suitecomponent. Probably I should use an atomic action for whole operation.
Comment 5 Martin Krauskopf 2005-11-21 13:30:23 UTC
I fixed rather the duplicate. NPE shouldn't be thrown anymore I think. Rather
IOException (see issues 69029 or/and 69306). Also core infractructure was
rewritten by Jesse's refactoring so project.getPlatform(true) shouldn't return
null until something is very wrong (not "quite often" like now).

Checking in ui/customizer/SuiteUtils.java; 1.15 -> 1.16;
Comment 6 pzajac 2005-11-25 13:27:14 UTC
cannot reproduce -> verified