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.
1) Add new platform with NB Platform Manager 2) Set it as a target platform for some module 3) Go to NBPM, remove the platform --> IOE is thrown Since property change is fired and NbModuleProject tries to reload module-list. Solution could be e.g. call getPlatform(true) in this case and fallback to default. Maybe also pop-up dialog with Information that project X uses platform Y and that default is used after deletion. Or I would check all open projects when deleting platform in NBPM and show the user a "Yes/No" warning. If the user confirms I would adjust all project to use the default platform and then delete. Feel free to reassign.
Created attachment 27088 [details] NPE
Reproducible, but does not look like a P2 to me. The IOE is printed only to the log file. If you open the project's properties, a dialog is displayed notifying you that the platform will be switched to the default. Probably when the platform is deleted, the project's platform should be automatically switched to the default - I don't want to show a dialog for this since it could conflict with other dialogs (e.g. Platform Manager). Should anyway rewrite the UI of broken platform notification in a subsequent release, to use a more consistent pattern (Jano Rojcek has some ideas I think).
*** Issue 73303 has been marked as a duplicate of this issue. ***
*** Issue 75337 has been marked as a duplicate of this issue. ***
as duplicate says - this is highly visible when user opens module from 5.0 in 5.5.. raising to P2..
musilt2: probably should be fixed for next apisupport release but will not be touched for 5.5. The bug you probably want to be tracking is rather the root cause, issue #75324.
*** Issue 74830 has been marked as a duplicate of this issue. ***
*** Issue 75460 has been marked as a duplicate of this issue. ***
*** Issue 76205 has been marked as a duplicate of this issue. ***
The exception is also thrown when on removing project from module suite.
*** Issue 88760 has been marked as a duplicate of this issue. ***
Will need to be reevaluated.
Issue #74830 actually has a somewhat different stack trace, from SingleModuleProperties.
A proper UI would better show you what was wrong with a project at any point and let you correct it. Not for 6.0. In the meantime, suppressing these exceptions. Checking in ui/LibrariesNode.java; /shared/data/ccvs/repository/apisupport/project/src/org/netbeans/modules/apisupport/project/ui/LibrariesNode.java,v <-- LibrariesNode.java new revision: 1.21; previous revision: 1.20 done Checking in NbModuleProject.java; /shared/data/ccvs/repository/apisupport/project/src/org/netbeans/modules/apisupport/project/NbModuleProject.java,v <-- NbModuleProject.java new revision: 1.157; previous revision: 1.156 done Checking in ui/customizer/SingleModuleProperties.java; /shared/data/ccvs/repository/apisupport/project/src/org/netbeans/modules/apisupport/project/ui/customizer/SingleModuleProperties.java,v <-- SingleModuleProperties.java new revision: 1.72; previous revision: 1.71 done
*** Issue 118492 has been marked as a duplicate of this issue. ***