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

Problem with NullPointerException Error

Abiodun Adisa
Ranch Hand

Joined: Jan 17, 2002
Posts: 495
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)){

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

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

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..