I have a requirment of making the attachment mandatory in Oracle Iexpenses. When the user hit the submit button in the review page I have to check whether it has at least one attachment either at the header level or at the line level.
I tried to extend the FinalReviewPage controller and i am getting the below error. Not sure what went wrong. Please throw some ideas. Any help would be greatly appreciated.
## Detail 0 ## java.lang.NullPointerException at xxlin.oracle.apps.ap.oie.entry.summary.webui.XXXFinalReviewPageCO.processFormRequest(XXXFinalReviewPageCO.java:26)
Following is the logic I have written in the controller.
The following works for us. I've created a controller extension for the FinalReviewPageCO in iExpense using the following code. It throws an error if receipt is required and no attachment was supplied.