<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: NULL reference error ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/null-reference-error/m-p/4181546#M999550</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I forgot to create instance for g_action.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks All for your replies&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Jul 2008 13:36:06 GMT</pubDate>
    <dc:creator>former_member194669</dc:creator>
    <dc:date>2008-07-18T13:36:06Z</dc:date>
    <item>
      <title>NULL reference error ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/null-reference-error/m-p/4181541#M999545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting a dump as "Access via 'NULL' object reference not possible" while using the following code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: g_view_controller type ref to if_wd_view_controller,
      g_fcode           type ref to if_wd_action.
      g_view_controller ?= wd_this-&amp;gt;wd_get_api( ).
call method g_view_controller-&amp;gt;get_current_action
  receiving
    result = g_fcode.

if g_action-&amp;gt;name = 'STD'.
   " dump occurs here
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2008 13:29:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/null-reference-error/m-p/4181541#M999545</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2008-07-18T13:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: NULL reference error ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/null-reference-error/m-p/4181542#M999546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2008 13:32:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/null-reference-error/m-p/4181542#M999546</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2008-07-18T13:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: NULL reference error ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/null-reference-error/m-p/4181543#M999547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you instantiated g_action somewhere else in your code?&lt;/P&gt;&lt;P&gt;Or do you mean to do g_fcode-&amp;gt;name?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2008 13:32:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/null-reference-error/m-p/4181543#M999547</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-18T13:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: NULL reference error ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/null-reference-error/m-p/4181544#M999548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pl. check whether variable &lt;STRONG&gt;g_action&lt;/STRONG&gt; is instantiated or not before use.&lt;/P&gt;&lt;P&gt;From ur code I am not able to understand it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;JOy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2008 13:33:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/null-reference-error/m-p/4181544#M999548</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-18T13:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: NULL reference error ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/null-reference-error/m-p/4181545#M999549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;a®s,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think this would help you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2008 13:34:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/null-reference-error/m-p/4181545#M999549</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-18T13:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: NULL reference error ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/null-reference-error/m-p/4181546#M999550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I forgot to create instance for g_action.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks All for your replies&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2008 13:36:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/null-reference-error/m-p/4181546#M999550</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2008-07-18T13:36:06Z</dc:date>
    </item>
  </channel>
</rss>

