Bug 309372 - NullPointerException when performing Sort Members operation from the Pacakage explorer
Summary: NullPointerException when performing Sort Members operation from the Pacakage...
Status: NEW
Alias: None
Product: AJDT
Classification: Tools
Component: Core (show other bugs)
Version: 2.0.2   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Andrew Eisenberg CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 308913
Blocks:
  Show dependency tree
 
Reported: 2010-04-15 14:32 EDT by Andrew Eisenberg CLA
Modified: 2010-04-15 14:32 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Eisenberg CLA 2010-04-15 14:32:03 EDT
AspectJ files in an aspectJ project will sometimes throw an NPE when a sort members operation is called on it from the package explorer.  This happens when a dummy member is added to the body for content assist purposes.  Bug 308913 deals with the problem of formatting.

I think that the best we can easily do is to disable sort members for AJ files in this situation.  This is the same behavior that we do for Save actions, where we disable everything except for organize imports.