AM Impl- View Object not found- Null pointer exception
Hi,
I wanted to filter my view criteria to get a particular row . i used the following code inside the application module. But Why can't I get View Objects?
private Row getUserInfo(String emailId) {
Row userInfo = null;
if (emailId != null && !emailId.equals("")) {
ViewObject userAuthentionEVO = this.getViewObj1();//returns null
userAuthentionEVO.setNamedWhereClauseParam("The_EmailId", emailId);
userAuthentionEVO.executeQuery();
userInfo = userAuthentionEVO.first();
}
return userInfo;
}
Exception in thread "main" java.lang.NullPointerException
at oracle.insurance.viking.foundation.model.am.AuthenticationAMImpl.getUserInfo(AuthenticationAMImpl.java:165)
at oracle.insurance.viking.foundation.model.am.AuthenticationAMImpl.validateUserCredential(AuthenticationAMImpl.java:64)
at oracle.insurance.viking.foundation.model.am.AuthenticationAMImpl.main(AuthenticationAMImpl.java:35)