1. Nageswara Rao Magapu
  2. PowerBuilder
  3. Thursday, 1 November 2018 11:28 AM UTC

Hi Team ,

Recently we migrated our application to Power builder 2017 but however the application is being kicked off once in a while ( Mostly while switching between two PB applications in as reported by user ) with below error screen . All users use Windows 7 Operating system .

Could you please assist us to find  solution to fix this kickoff .

 

Thanks in Advance .

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 1 November 2018 13:19 PM UTC
  2. PowerBuilder
  3. # 1

Hi Nageswara;

   A "NULL Object reference" error typically means that a pointer to a variable, object class, etc that was declared  by the PB Developer is not a valid pointer (address). It could also be an internally generated pointer referenced by the PB App that is no longer valid (for an example, a Window name that is referenced but the Window has now been closed, resulting in a Null pointer).

   The fix would be to look at your code in the area of the exception and first of all see what the object pointer is that is causing the exception. Once you have that, look around in your App code where the pointer is allocated. Could there be a condition where the pointer is not set before the failed code executes. On the flip side of the coin, is there somewhere in your App that clears out the pointer (ie: A Destroy command is executed).

    The safe way around the problem is to either wrap the exception code area in a TRY..CATCH or use an IsValid() command on the object pointer before you then try and use it - thus preventing the Null Object condition.

HTH

Regards ... Chris

Comment
  1. Nageswara Rao Magapu
  2. Thursday, 1 November 2018 14:53 PM UTC
Thanks Chris , I will check the code and probably will get back with my analysis .
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.