Skip to Content
0
Former Member
Aug 04, 2006 at 02:05 PM

null pointer error

32 Views

Hi I got a null pointer.

ihave the following code:

//@@begin executeY_Tf_Start_Process_Input()

Y_Tf_Start_Process_Input inputPS = new Y_Tf_Start_Process_Input();

inputPS.setScenario_Key(wdContext.currentYtf_MainprocessPLElement().getScenariokey());

inputPS.setPernr(wdContext.currentEmployee_ListELElement().getPernr());

inputPS.setCountry(wdContext.currentCountriesCLElement().getLand1());

inputPS.setMainprocesskey(wdContext.currentYtf_MainprocessPLElement().getMainprocesskey());

inputPS.setReason(wdContext.currentReasonsPRElement().getReason());

wdContext.nodeY_Tf_Start_Process_Input().bind(inputPS);

try

{

wdContext.currentY_Tf_Start_Process_InputElement().modelObject().execute();

wdContext.nodeOutputPS().invalidate();

}

catch (Exception ex)

{

ex.printStackTrace();

}

//@@end

}

_____________

error message:

java.lang.NullPointerException

at com.shell.teamflow.wd.processstart.ProcessStart_Cust.executeY_Tf_Start_Process_Input(ProcessStart_Cust.java:220)

at com.shell.teamflow.wd.processstart.wdp.InternalProcessStart_Cust.executeY_Tf_Start_Process_Input(InternalProcessStart_Cust.java:395)

at com.shell.teamflow.wd.processstart.StartProcessView.onActionStartProcess(StartProcessView.java:177)

at com.shell.teamflow.wd.processstart.wdp.InternalStartProcessView.wdInvokeEventHandler(InternalStartProcessView.java:432)

at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)

at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)

at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleAction(WebDynproMainTask.java:101)

at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleActionEvent(WebDynproMainTask.java:304)

at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:649)

at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)

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

at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)

at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)

at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:55)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)