Bug 174542 - [xdoclet] NPE occurs in org.eclipse.jst.j2ee.ejb.annotations.xdoclet plugin
Summary: [xdoclet] NPE occurs in org.eclipse.jst.j2ee.ejb.annotations.xdoclet plugin
Status: RESOLVED WONTFIX
Alias: None
Product: WTP EJB Tools
Classification: WebTools
Component: jst.ejb (show other bugs)
Version: 1.5.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: Future   Edit
Assignee: jst.ejb CLA
QA Contact: Kaloyan Raev CLA
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2007-02-17 01:16 EST by Hiroyuki Inaba CLA
Modified: 2012-11-02 03:37 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 Hiroyuki Inaba CLA 2007-02-17 01:16:13 EST
Eclipse SDK 3.2.1, Build ID: M20060921-0945
WTP 1.5.1, JST Build ID: 200609230508, WST Build ID: 200609230508

Steps To Reproduce:

1. Select Window > Perferences
2. Select XDoclet > ejbdoclet
3. Slect DeplymentDescriptor 
4. Click Edit button
5. Check/Un-check [include] checkbox

!ENTRY org.eclipse.ui 4 0 2007-02-17 15:09:29.718
!MESSAGE java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
at org.eclipse.jst.j2ee.ejb.annotations.internal.xdoclet.ui.AttributesDecorator$1.widgetSelected(AttributesDecorator.java:86)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
   :

More information:

org.eclipse.jst.j2ee.ejb.annotations.xdoclet
src/org/eclipse/jst/j2ee/ejb/annotations/internal/xdoclet/ui
AttributesDecorator.java, line 85

String id = attribute.getAttribute("id");
preferenceStore.setProperty(id + ".include", ((Button) e.item).getSelection());

=> "e.item" is null;
   It is necessary to use "e.getSource()"
Comment 1 Kaloyan Raev CLA 2008-04-09 03:41:43 EDT
Mass reassignment of bugs from Naci to ejb-inbox.
Comment 2 Kaloyan Raev CLA 2008-04-14 08:25:13 EDT
Still a valid bug. 
Comment 3 Kaloyan Raev CLA 2012-11-02 03:37:24 EDT
I am closing all tickets related to XDoclet as WON'T FIX, because there is no committer to support this functionality. I can review patches if anyone is willing to contribute.