Skip to Content
avatar image
Former Member

Access via 'NULL' object reference not possible

Hi All,

I am getting a dump when I test my application in web dynpro. The dump message I'm getting is "Access via 'NULL' object reference not possible"

Kindly let me know the reason behind it.

Thanks in Advance

Murli

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Best Answer
    avatar image
    Former Member
    Sep 26, 2008 at 09:56 AM

    Hi Arun,

    Actually this method 'get_attribute_external' is a method called by the system itself. I tried putting a break point in my method, the program never gets processed till my break point. So can u tell me how to put the break point in the method 'get_attribute_external'.

    Thanks n Regards.

    Murli

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 25, 2008 at 12:18 PM

    You are probably trying to access a node or element that has not been created or instantiated yet,look at the dump in ST22 in more detail it should tell you the object that is null.

    Regards

    Carl

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 25, 2008 at 12:38 PM

    Hi Murali,

    Welcome to SDN.

    This null object reference error comes when you have a node or element which is initial or not instantiated.

    Put a breakpoint and find out the place of dump.

    Regards..

    Arun.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 26, 2008 at 05:39 AM

    hi,

    The run time error suggests that object reference is not assigned. It says that reference has not been created. But in my code i have created reference for the node (using code wizard).

    Will there be a problem bcoz of the view name?(Many webdynpro applications having the same view name).

    Or do we need a patch to be intsalled in the server to avoid this error?

    Pls reply.. Thanks In advance..

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      No need to patch or do somethiing... Check things like reference variable declared correctly or not.. or try to debug......

  • avatar image
    Former Member
    Sep 26, 2008 at 06:51 AM

    Hi,

    I did try to debug, the source code extract from ST22 says a problem with the method 'get_attribute_external', which I have not used in the code. The method which i have written is never getting executed.

    Pls reply..

    Add comment
    10|10000 characters needed characters exceeded