Just a silly thing to check!!!

getUserEntityHome() is returning null?????

-Davender Chhabra

> The following code(sessionBean) giving java.lang.NullPointerException
> whenever ui is null. i.e Whenever entity bean is failed to insert the
record
> it will return NullPointerException.
> plz suggest something to overcome this problem.
>
>
>
>                         UserInfoEntityRemote ui =
> getUserEntityHome().create(user);
>                        if (ui == null)
>                        {
>                                tx.rollback();
>                                return false;
>                        }
>                         else
>                         {
>                                tx.commit();
>                                return true;
>
>                        }
>
>
>
> Thanx
> Purushotham

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to