Bug 240512 - OpenJEEResourceAction throws null pointer when trying to open bean with no class
Summary: OpenJEEResourceAction throws null pointer when trying to open bean with no class
Status: RESOLVED FIXED
Alias: None
Product: WTP Java EE Tools
Classification: WebTools
Component: jst.j2ee (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0.1   Edit
Assignee: Ian Tewksbury CLA
QA Contact: Chuck Bridgham CLA
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2008-07-11 11:46 EDT by Ian Tewksbury CLA
Modified: 2008-07-16 22:10 EDT (History)
1 user (show)

See Also:
cbridgha: review+


Attachments
Patch for OpenJEEResouceAction (4.74 KB, patch)
2008-07-11 11:48 EDT, Ian Tewksbury CLA
bjorn.freeman-benson: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Tewksbury CLA 2008-07-11 11:46:20 EDT
If a user attempts to open a bean from the project explorer that does not have
a class or has a class that does not exist OpenJEEResourceAction.run() will
end up with a NullPointerExcepiton.

These changes were made to OpenJ2EEResourceAction for Bug 234883
They also need to be made in OpenJEEResourceAction.
Comment 1 Ian Tewksbury CLA 2008-07-11 11:48:01 EDT
Created attachment 107212 [details]
Patch for OpenJEEResouceAction

This patch will fix the null pointer and cause the correct editor to be opened in the case where before the NullPointerException was being thrown.
Comment 2 Chuck Bridgham CLA 2008-07-16 10:26:15 EDT
approve
Comment 3 Carl Anderson CLA 2008-07-16 22:10:57 EDT
Committed to R3_0_maintenance