cancel
Showing results for 
Search instead for 
Did you mean: 

Getting st22 dump at line shown

Former Member
0 Kudos

Hi friends ,

I am creating tree Dynamic .

In that when it shows dump as 'Access via null object ' in source code extract I am getting following extract .

method get_action_from_event.

data: id type string,

view_name type string,

controller_manager type ref to cl_wdr_component,

client_component type ref to cl_wdr_client_component,

target type ref to cl_wdr_controller.

check root_component->is_deleted = abap_false.

split event->view_name at `.` into id view_name.

client_component = cl_wdr_client_application=>get_instance( id ).

controller_manager = client_component->component.

target = controller_manager->get_controller( view_name ).

action ?= target->get_action_internal( event->command ).

<i><b>if event->type = event->co_action_event.

action->set_parameters( event->parameters ).</b></i>

action->set( ui_event = event->ui_element_event ).

else.

action->set_parameters( event->parameters ).

endif.

endmethod.

..Now What this system code does and if I am getting error at Highlighted line what is cause of it .

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member215843
Active Participant
0 Kudos

Hi Parry,

I could imagine that the action is not there. You may have declared an action to be called. This action must exist in the view.

E.g. if you have declared the action "DOIT" in the tree, you should have declared the action "DOIT" in the view, which means that the method "ONACTIONDOIT" exists.

If this is not the reason, please check, which of the objects (event, action) have the null value.

Ciao, Regina