cancel
Showing results for 
Search instead for 
Did you mean: 

Access via 'NULL' object reference not possible

Former Member
0 Kudos

I m getting the following error

The following error text was processed in the system xxx : Access via 'NULL' object reference not possible.

Note

The termination type was: RABAX_STATE

The ABAP call stack was:

Method: GET_ATTRIBUTE_EXTERNAL of program CL_WDR_VIEW_ELEMENT_ADAPTER===CP

Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L0STANDARD==============CP

Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP

Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP

Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP

Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L7STANDARD==============CP

Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP

Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP

Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP

Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L7STANDARD==============CP

Accepted Solutions (1)

Accepted Solutions (1)

baskaran00
Active Participant
0 Kudos

Hi,

U can write ur code inside if condition as below:

lo_elt = lo_node->get_element( ).

if not ( lo_elt is initial ).

<put ur code here>

endif.

This time u wont get any erros. Because if lo_elt is null it will throw u the object null reference error.

Thanks,

Router

Former Member
0 Kudos

Solved, it was the cardinality issue.

Answers (1)

Answers (1)

Former Member
0 Kudos

Please paste the code where you getting error.