Bug 106705 - NPE on Create Ant Build File action for feature without all its plugins
Summary: NPE on Create Ant Build File action for feature without all its plugins
Status: RESOLVED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1.1   Edit
Assignee: PDE-UI-Inbox CLA Friend
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-10 20:05 EDT by Philippe Ombredanne CLA Friend
Modified: 2005-08-12 13:20 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe Ombredanne CLA Friend 2005-08-10 20:05:48 EDT
If I create a feature that references a plugin that is not in the workspace but
is  installed (hence in the list fo available plugins for my feature) and
attempt to create an ant build file for that feature in the UI, I get a null
pointer exception.
I think it is somewhat normal that the script generation does not work properly
in the UI in that case, since the build script *cannot* be saved since the
plugin is not in the workspace.
But having a better feedback to the user would be appreciable.
May be somthing like verifying 1st that all the feature plugins are available in
the workspace, and if not giving a proper pop-up message, rather than trying to
do something that is impossible and crashing with a NPE.
Comment 1 Wassim Melhem CLA Friend 2005-08-12 13:20:46 EDT
Good catch.  Fixed in both 3.1.1 and 3.2.