Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

java.lang.NullPointerException

Hi all,

java.lang.NullPointerException

at com.sap.sh.SHView.wdDoInit(SHView.java:101)

at com.sap.sh.wdp.InternalSHView.wdDoInit(InternalSHView.java:153)

at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doInit(DelegatingView.java:61)

at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)

at com.sap.tc.webdynpro.progmodel.view.View.initController(View.java:445)

... 32 more

What i missing in this code...

IWDAttributeInfo attributeInfo = wdContext.getNodeInfo().getAttribute(IPrivateSHView.IJobsElement.JOB);

<b>ISimpleTypeModifiable countryType = attributeInfo.getModifiableSimpleType();</b>(101)

// Set field label and populate valueset

countryType.setFieldLabel("Country");

IModifiableSimpleValueSet valueSet = countryType.getSVServices().getModifiableSimpleValueSet();

for (int i = 0; i < wdContext.nodeJobs_input().size(); i++)

{

valueSet.put(wdContext.nodeJobs_input().getJobs_inputElementAt(i),"cons"+i);

}

Plz Tel me

Thanks & Regards

Mathi

Former Member
Not what you were looking for? View more on this topic or Ask a question