wood burning stoves 2.0*
The moose likes Java in General and the fly likes Problem with NullPointerException Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic
Author

Problem with NullPointerException Error

Abiodun Adisa
Ranch Hand

Joined: Jan 17, 2002
Posts: 495
Hello,
I am Having a problem with Null Pointer Exception. I have this method which i know can return a Null result

if (message.getJMSCorrelationID().equals(null)){
message.setJMSCorrelationID("1");
}

And i am doing the test and i have taking care of the Null problem by setting the JMSCorrelationID to 1, but its still giving me an error, Jumping to the Catch Block Instead
Joanne Neal
Rancher

Joined: Aug 05, 2005
Posts: 3169
    
  10
Double post. Already answered here


Joanne
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with NullPointerException Error
 
Similar Threads
Validations using ActionErros Validate
Problem with NullPointerException Error
Getting Session as null
Set Chained OFF error while executing from my Bean
Injection of EJB in POJO class not working..