‎2008 Jul 18 2:29 PM
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.
a®
‎2008 Jul 18 2:32 PM
Well, on the face of it, it looks like you've not got an instance of g_action. You should have a CREATE OBJECT, or a method that returns a reference which is assigned to g_action.
matt
‎2008 Jul 18 2:32 PM
Well, on the face of it, it looks like you've not got an instance of g_action. You should have a CREATE OBJECT, or a method that returns a reference which is assigned to g_action.
matt
‎2008 Jul 18 2:36 PM
Matt,
I forgot to create instance for g_action.
Thanks All for your replies
a®
‎2008 Jul 18 2:32 PM
Have you instantiated g_action somewhere else in your code?
Or do you mean to do g_fcode->name?
‎2008 Jul 18 2:33 PM
Pl. check whether variable g_action is instantiated or not before use.
From ur code I am not able to understand it.
Regards,
JOy.
‎2008 Jul 18 2:34 PM