Skip to Content
0
Former Member
Mar 20, 2009 at 08:57 AM

NullPointerException for one element in the Model.

16 Views

Hello Experts,

I executed an RFC from my WebDynpro project. I believe it gets the correct values in the model, but when I try to bind the node to a screen element, the exception occurs.

The node in question is of the type BigDecimal. I'm not sure if this is the cause but when I try to display other nodes from the same level in the node hierarchy, it displays the String nodes correctly.

Here is the exception I got:

java.lang.NullPointerException

    at com.sap.aii.proxy.framework.core.JcoBaseTypeData.getElementValueAsBigDecimal(JcoBaseTypeData.java:648)
    at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClass.getAttributeValueAsBigDecimal(DynamicRFCModelClass.java:259)
    at com.kaisa.mwci.models.getnetworks.Zps_Fm_Get_Network_Num_Output.getEx_Plcstt(Zps_Fm_Get_Network_Num_Output.java:179)
    at com.kaisa.mwci.wd.wdp.IPublicMainComp$INetworksElement.wdGetObject(IPublicMainComp.java:1156)
    at com.sap.tc.webdynpro.progmodel.context.MappedNodeElement.wdGetObject(MappedNodeElement.java:351)

Thanks in advance. The members of this forum has always been helpful.

Cheers,

Alfonso