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.
In free form project, when an "action" element is added in "ide-action" and the action contains the "context" element that is either empty or not complete (missing the arity for example) then an NPE is thrown when right clicking on a source file in the project view.
I'm not able to reproduce it. Feel free to reopen, but attach (use Create a new attachement link above) the NPE and if possible project.xml file or step by step info how to reproduce it. Perhaps it is related to a concrete ide-action you customize? When saving such a project.xml you should get error that it does not validate against XML schema, right?
Please find attached a project.xml making the problem
Created attachment 18499 [details] the log of the error when it happens
Created attachment 18500 [details] the project which the <context> element is incomplete and make the problem
I see, you are using beta2. Validation of project.xml was added after beta2. When you open/save your project in latest trunk build you will get an error saying that your project.xml contains error. That will help you identify the problem and fix it.
Ideally you would want the validation *before* you save (or refuse to reload an invalid project.xml), so that all code can expect it is reading valid XML and omit cumbersome error handling for such cases. See issue #42686.
closed