Skip to Content
0
Jul 18, 2008 at 01:29 PM

NULL reference error ?

98 Views

All,

I am getting a dump as "Access via 'NULL' object reference not possible" while using the following code

data: g_view_controller type ref to if_wd_view_controller,
      g_fcode           type ref to if_wd_action.
      g_view_controller ?= wd_this->wd_get_api( ).
call method g_view_controller->get_current_action
  receiving
    result = g_fcode.

if g_action->name = 'STD'.
   " dump occurs here
endif.