Hi,
My page performs search operation.Normally when i enter a value and click on search it fetches a list corresponding to the search value entered by me.But when i refresh my page and enter any value it is throwing Null pointer exception.can anyone help me please?

Kirti

Ads

View Answers

February 16, 2011 at 4:28 PM

hi, i found the root cause. whenever a search is performed they have tried to fetch the value of one model bean and set it into another model bean. During page refresh the value is fetched in the first model bean but the Object of the model bean were they are trying to set the value is null. Now i placed an if condition tat checks if the Model bean object were they are trying to set the value is null and if it is null create a new Model Bean object. Now its working fine.

null pointer exception in javanullpointerexception in java What is nullpointerexception in Java and when it occurs? Show it with an example.Thanks!
Java NullPointerException

Advertisements

Httpservletresponse null pointer exception.
Httpservletresponse nullpointerexception. What is Httpservletresponse nullpointerexception?
NullPointerException occurs when we try to implement an application without referencing the object and allocating

Null Pointer ExceptionNullPointer Exception whis is the NullPointerException in java? or define NullPointerException with exp?
NullPointerException occurs, when you try to implement an application without referencing the object

NULL POINTER EXCEPTION NULLPOINTEREXCEPTION What is the Root cause for Class caste exception in struts frame work .and how 2 handle
that 1 please help me

Java null pointer exception
Java nullpointer exception Hi
I've made an array of Book objects that I made, the array is called library and it can hold 100 books, but currently...]!=null){
if(strfield.contains(param)){
result+=library[counter

Getting Null pointer Exception in the jsp page
Getting NullpointerException in the jsp page I have developed this jsp page to store the data in database.While storing the value of check box in database I am getting nullpointerexception in the following code

Getting Null pointer Exception in the jsp page
Getting NullpointerException in the jsp page I have developed this jsp page to store the data in database.While storing the value of check box in database I am getting nullpointerexception in the following code

Getting Null pointer Exception in the jsp page
Getting NullpointerException in the jsp page I have developed this jsp page to store the data in database.While storing the value of check box in database I am getting nullpointerexception in the following code

Getting Null pointer Exception in the jsp page
Getting NullpointerException in the jsp page I have developed this jsp page to store the data in database.While storing the value of check box in database I am getting nullpointerexception in the following code

Null Pointer ExceptionNullPointerException
&nbsp....
Understand NullPointerException
Suppose we have a class Wide..., you get a nullpointer
Exception ,the Wide has default value of null

Null pointer exception error in Jsp - JSP-ServletNullpointerexception error in Jsp Hi i write a login page. when i validate the login value then the nullpointer exception error is occured.
my..." attributes in the input tag
So id,userpwd gives nullpointerexception

Null pointer exception error in Jsp - JSP-ServletNullpointerexception error in Jsp Expert:Majid
Hi i write a login page. when i validate the login value then the nullpointer exception error..." attributes in the input tag
So id,userpwd gives nullpointerexception.
Thanks

Handle Null Pointer Exception while text file upload
Handle NullPointerException while text file upload I want the code for handling nullpointerexception in jsp page.
That is I need an error page for nullpointerexception.
The cause for nullpointerexception is while

when do we get null pointer exception in java
when do we get nullpointerexception in java can anybody explain me abt nullpointerexception?
like in wt situation do v get NPE?
Are these 2 strings same?
String str;
String str=null

Null pointer execptionNullpointer execption what is nullpointerexception. I am getting the nullpointerexception in this line conn= com.mypay.dao.Connection.getConnection(); what is wrong

Null pointer execptionNullpointer execption what is nullpointerexception. I am getting the nullpointerexception in this line conn= com.mypay.dao.Connection.getConnection(); what is wrong

throws Exception - RMIthrows Exception I downloaded your RMI Hello program it works... shows the message the Server is connected, but in Client side it throws an exception."RMI not bound Exception". What can I do for this? Whether I have to change

null pointer errornullpointer error Respected sir there is a problem in this code
when i add any new record in ms access data base from my code, it gives only nullpointer error
sir please help me
my code are given below
compilatation class

null pointer errornullpointer error Respected sir there is a problem in this code
when i add any new record in ms access data base from my code, it gives only nullpointer error
sir please help me
my code are given below
compilatation class

check null exception java
check nullexception java check nullexception java - How to check the nullexception on Java?
The nullpointerexception in java occurs... on it.
See the example nullpointerexception