Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to overcome from NULL POINTER exception without try catch block

3422961Mar 28 2018 — edited Mar 30 2018

Hi all,

Am using J developer Studio Edition Version 11.1.1.9.0.My scenario is when i try to insert data in db from Managed bean, while insert i didn't enter two fields and insert.I got a null pointer exception.One field i have a value with string variable and another field i have binding with bind variable.Please suggest me to overcome from this error.

Following is my jsff code of two fields which i didn't enter while insert.

--------------------------------------------------------------------First Field----------------------------------------

<af:selectOneChoice value="#{pageFlowScope.Home.workconfrnpaymethod}"

                                label="#{bindings.Paymethod.label}"

                                required="#{bindings.Paymethod.hints.mandatory}"

                                shortDesc="#{bindings.Paymethod.hints.tooltip}"

                                id="soc1">

              <f:selectItems value="#{bindings.Paymethod.items}" id="si1"/>

            </af:selectOneChoice>

  private String workconfrnpaymethod;

--------------------------------------------------------------------Second Field----------------------------------------

  <af:inputText label="Invoice Number" id="it26"

                          binding="#{pageFlowScope.Home.wcinvnumbind}"/>

private RichInputText wcinvnumbind;

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 27 2018
Added on Mar 28 2018
20 comments
804 views