Bug 234883 - OpenJ2EEResourceAction throws null pointer when trying to open bean with no class
Summary: OpenJ2EEResourceAction throws null pointer when trying to open bean with no c...
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
: P2 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-05-30 12:59 EDT by Ian Tewksbury CLA
Modified: 2008-09-10 16:27 EDT (History)
2 users (show)

See Also:
cbridgha: review+


Attachments
Patch (1.46 KB, patch)
2008-05-30 13:01 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-05-30 12:59:31 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 OpenJ2EEResourceAction.run() will end up with a NullPointerExcepiton.
Comment 1 Ian Tewksbury CLA 2008-05-30 13:01:23 EDT
Created attachment 102907 [details]
Patch

This patch fixes the null pionter by first checking for a null name or type and if either occures calls openAppropriateEditor.
Comment 2 Chuck Bridgham CLA 2008-06-16 10:35:58 EDT
safe fix - if resource can't be found
Comment 3 Carl Anderson CLA 2008-06-18 21:32:22 EDT
Committed to R3_0_maintenance
Comment 4 Carl Anderson CLA 2008-06-30 16:58:16 EDT
Also committed to HEAD