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 62765 - Exception while viewing properties of module using removed platform
Summary: Exception while viewing properties of module using removed platform
Status: VERIFIED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Martin Krauskopf
URL:
Keywords:
Depends on: 104864
Blocks:
  Show dependency tree
 
Reported: 2005-08-22 12:26 UTC by Tomas Danek
Modified: 2007-06-25 23:27 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exception (3.93 KB, text/plain)
2005-08-22 12:27 UTC, Tomas Danek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Danek 2005-08-22 12:26:04 UTC
sorry if this does not belong to APIsupport, feel free to reassigne..

1) add a new platform, based on current distribution of 4.2
2) name it as Sample
3) Create new standalone module, based on Sample platform
4) remove Sample platform from Tools|NB platform manager
5) invoke popup on that standalone module, select properties
6) exception (attached)
Comment 1 Tomas Danek 2005-08-22 12:27:51 UTC
Created attachment 24120 [details]
exception
Comment 2 Martin Krauskopf 2005-08-22 13:23:11 UTC
Getting a little different exception. So there are probably more problems when
reproducing this scenario
Comment 3 Martin Krauskopf 2005-08-30 01:09:30 UTC
Hmmm, probably the best way would be, that if the platform is deleted the
default one will be used as a fallback (user will have to confirm by pressing OK
button to commit it)
Comment 4 Martin Krauskopf 2005-08-30 01:21:59 UTC
Fixed.

Checking in ui/customizer/SingleModuleProperties.java; 1.19 --> 1.20
Comment 5 Tomas Danek 2005-08-31 10:44:49 UTC
Martine, I've to reopen.

/ if the platform is deleted the
default one will be used as a fallback (user will have to confirm by pressing OK
button to commit it)

Yes, that would be nice and correct i think.


I repeated these steps in today's build and:
When i remove platform (via Tools| NBPM), in NBPM is only default platform
visible, but in module properties in combobox Netbeans Platform, i can still
choose previously removed platform, and confirm by OK with no problem. "Refresh"
is done <=> i click Manage platforms button (beside the combobox), then only
default platform is visible. Anyway, i did not meet with your suggested dialog:)
 The only positive i found is that no exception is thrown;)
Comment 6 Martin Krauskopf 2005-08-31 10:53:38 UTC
Yes, you are right. But this is another bug - one of that never-ending
refreshing problem. Should be filled as a new separate issue (next time).
Anyway, good catch, thanks ;)
Comment 7 Martin Krauskopf 2005-09-16 14:16:20 UTC
Fixed.

Checking in ui/customizer/CustomizerLibraries.java; 1.32 --> 1.33
Comment 8 Tomas Danek 2005-09-19 10:46:45 UTC
verified, 20050918