hi
i have written the below code , and all the elements
iam getting from the RFC are returning me of type
BigDecimal and i need to calculate the price*numberofnight
he is staying in the hotel , so i have multiplied in the
below way
BigDecimal nightNumber=wdContext.nodeIpsitd().currentIpsitdElement().getMnits();
BigDecimal pitchPrice=wdContext.nodeOpprcid().currentOpprcidElement().getPthpr();
BigDecimal pitchFee=pitchPrice.multiply(nightNumber);
java.lang.NullPointerException
at java.math.BigDecimal.multiply(BigDecimal.java:412)
at uk.co.caravanclub.BookingDetails.onActionGetPrice(BookingDetails.java:303)
at uk.co.caravanclub.wdp.InternalBookingDetails.wdInvokeEventHandler(InternalBookingDetails.java:520)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
iam getting this error ,
can any one help me out?