*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 3432
    
  12
Double post. Already answered here


Joanne
 
Don't get me started about those stupid light bulbs.
 
subject: Problem with NullPointerException Error
 
Similar Threads
Set Chained OFF error while executing from my Bean
Validations using ActionErros Validate
Injection of EJB in POJO class not working..
Problem with NullPointerException Error
Getting Session as null