Skip to Content
0
Former Member
Oct 20, 2005 at 03:26 PM

Exception when dynamicaly attaching an action

18 Views

Hi,

I have created an action DYNAMIC_LINK_ACTION and attached it to a link to action element as follows

IWDLinkToAction _LinkToAction10Test = (IWDLinkToAction)view.createElement(IWDLinkToAction.class, "action");

IWDAction linkAction = wdThis.wdCreateAction(IPrivateVirtualTaxonomiesView.WDActionEventHandler.DYNAMIC_LINK_ACTION, "");

_LinkToAction10Test.setOnAction(linkAction);

The link is displayed without any problem but when I click on the link the following exception appears:

java.lang.NullPointerException

at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.handleUIElementEvent(HtmlClient.java:825)

at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.updateEventQueue(HtmlClient.java:317)

at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.prepareTasks(AbstractClient.java:237)

at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:641)

at com.sap.tc.webdynpro.clientserver.cal.ClientManager.parseRequest(ClientManager.java:144)

Any idea?

Thank you in advance,

Achim