I have a component having context->node1->usernr
usernr is one of the attributes in node1.
node1 has cardinality 0..n
I have two views, view1 and view2 in the window.
both the view contexts have mapping with node1 of component controller context.
View1 has a table that shows usernr as a column and view2 has an inputfield, the value of which is bound to usernr.
On clicking a button in view1, I am creating an element of node1 and binding it to the node. this os working fine. Also I am firing the outplug of view1 which is connected to inplug of view2.
I debugged the view2 and it is going upto the HANDLEIN_view2_inputplug
Then I just get this dump "Access via 'NULL' object reference not possible."
Error in the ABAP Application Program
The current ABAP program "CL_WDR_VIEW_ELEMENT_ADAPTER===CP" had to be terminated because it has come across a statement that unfortunately cannot be executed.
You attempted to use a 'NULL' object reference (points to 'nothing') access a component (variable: " ").
An object reference must point to an object (an instance of a class) before it can be used to access components.
Either the reference was never set or it was set to 'NULL' using the CLEAR statement.
Information on where terminated
Termination occurred in the ABAP program "CL_WDR_VIEW_ELEMENT_ADAPTER===CP" - in "GET_ATTRIBUTE_EXTERNAL".
The main program was "SAPMHTTP ".
In the source code you have the termination point in line 10 of the (Include) program "CL_WDR_VIEW_ELEMENT_ADAPTER===CM00Q".
Source Code Extract
1 method get_attribute_external. 2 3 data data_container type ref to cl_wdr_data_container. 4 data attribute type wdr_attribute_pointer. 5 data client_component type ref to cl_wdr_client_component. 6 7 attribute-attribute_name = i_binding->attribute_name. 8 attribute-element ?= get_bound_element( i_binding ). 9 client_component ?= attribute-element->node->controller->component->data_container_superio 11 data_container = client_component->data_container. 12 13 e_value = data_container->get_and_format( attribute = attribute ). 14 15 endmethod.
Error is at line 9
No. 21 Ty. METHOD
The thing that is worrying me is that nothing like this was happening at all earlier. I tested the application quite a few number of times and then suddenly this started. Since then it has not stopped.
I am unable to understand the reason for this. Pl help.
Edited by: Reema Shahbazkar on Jun 12, 2008 3:28 AM