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.
Steps to reproduce: 1) Select open project folder in Files tab 2) File | "Project" Properties Dialog appears indicating "Previously set platform not found; switching to default". This happens every time, even though the Java and Netbeans platforms are set. 3) Select "Libraries" category 4) Click "Add..." button Dialog for "Add Module Dependency" appears, but NPE is thrown and fields never enable. Filter and Module fields show "Please wait..." but never change. NPE is in SingleModuleProperties.java line 403 in getUniverseDependencies().
Created attachment 29035 [details] messages.log
suite.properties file had a bad suite.dir (not sure how it got set, since the module dependencies had been set up propertly through the IDE previously). Updating suite.dir to point to the right place seems to have helped. Not sure if the NPE still needs investigation...
Reassigning to "projects" for evaluation.
=>apisupport/project
Is the version in which it happened really 5.0? Since you wrote that "...Java and Netbeans platforms are set...". Java Platform can be set only in dev builds.
Please see the following attached images regarding whether it is 5.0.
Created attachment 29057 [details] ZIP file of screenshots showing Java Platform Manager
Yes, it is. Thanks. Just to note what you see in the About dialog would be enough ;). (there is an option to set JDK per module/suite in properties dialog in the upcoming release of APISupport - by this I was confused). Anyway as you said your suite-component was corrupted and there is not Resolve Broken Reference dialog or something like this yet (issue 61227). There are some similar issues already. We probably could handle each special case in its own way. But this would bring certain level of inconsistency. And you shouldn't be able to get a project into inconsistent state if you do all through the IDE. If yes it's another bug. Let's keep this open to be sure we handle this case after 61227 (or whatever similar) is implemented. Hopefully for 5.0u2.
I've fixed the NPE and added some diagnostics which should give to the user the clues what is wrong. src/org/netbeans/modules/apisupport/project/ui/customizer/Bundle.properties; new revision: 1.86; previous revision: 1.85 src/org/netbeans/modules/apisupport/project/ui/customizer/SingleModuleProperties.java; new revision: 1.71; previous revision: 1.70