This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 79892 - Invoke property editor of onEvent activity throws NPE
Summary: Invoke property editor of onEvent activity throws NPE
Status: VERIFIED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: BPEL (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: Nikita Krjukov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-10 12:21 UTC by Andrey Yamkovoy
Modified: 2006-07-13 16:38 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Yamkovoy 2006-07-10 12:21:41 UTC
Steps to reproduce:
- Create event handlers with onEvent activity for the process.
- Open properties window.
- Select onEvent activity on diagram and invoke property editor for it from 
properties window.
- Following NPE occurs:

java.lang.NullPointerException: Cannot create a dialog for a null component. 
Offending property editor 
class:org.netbeans.modules.bpel.properties.props.CustomEditorProperty$MyCustomEd
itor
	at org.openide.explorer.propertysheet.PropertyDialogManager.<init>
(PropertyDialogManager.java:114)
	at org.openide.explorer.propertysheet.CustomEditorAction.actionPerformed
(CustomEditorAction.java:202)
	at org.openide.explorer.propertysheet.SheetTable.processMouseEvent
(SheetTable.java:685)
	at java.awt.Component.processEvent(Component.java:5253)
	at java.awt.Container.processEvent(Container.java:1966)
	at java.awt.Component.dispatchEventImpl(Component.java:3955)
	at java.awt.Container.dispatchEventImpl(Container.java:2024)
	at java.awt.Component.dispatchEvent(Component.java:3803)
	at java.awt.LightweightDispatcher.retargetMouseEvent
(Container.java:4212)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3889)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
	at java.awt.Container.dispatchEventImpl(Container.java:2010)
	at java.awt.Window.dispatchEventImpl(Window.java:1774)
	at java.awt.Component.dispatchEvent(Component.java:3803)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy
(EventDispatchThread.java:242)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:163)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Comment 1 Nikita Krjukov 2006-07-11 19:42:09 UTC
There has been incorrect property editor for the onEvent element before. 
So now it should work correct because the new editor has been added.
Comment 2 Andrey Yamkovoy 2006-07-13 16:38:00 UTC
Fixed.