cancel
Showing results for 
Search instead for 
Did you mean: 

Nullpointer exception

Former Member
0 Kudos

Hi friends

How to resolve in Nullpointer exception in any application. Give me any causses for raise this exception

Regards

Narain

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

Null Pointer Exception means, there is no value in the context!. So please check whether your context element has some value in or not, it can be come from BAPI or hardcoded value.

Regards

Ravi

Former Member
0 Kudos

Hi Narain,

This exception occurs when u try to perform some operation on an object,which is not initialized .send the stack trace to find out the problem,

regards

Sumit

Former Member
0 Kudos

Hi,

The various cases when "null pointer exception" appears have been listed in the above reply.

In the Stack Trace generally you can find the line number in the code, where the null pointer has appeared. Debugging might help.

Regards

Arpita

Former Member
0 Kudos

Hi

<u>Nullpointer exception</u>

This is a typical java error. Some piece of code tries to access an object that does not exist

Thrown when an application attempts to use null in a case where an object is required. These include:

Calling the instance method of a null object.

Accessing or modifying the field of a null object.

Taking the length of null as if it were an array.

Accessing or modifying the slots of null as if it were an array.

Throwing null as if it were a Throwable value.

Check the exception for the stack trace to find out where it happens.

Regards

Chandran S

Message was edited by:

Armin Reichert

Former Member
0 Kudos

Chandran, could you please post in normal font weight, not everything bold? Thanks.

Armin