Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ApplicationStatus class E/SysUtils﹕ ApplicationContext is null in ApplicationStatus

From time to time I am receiving this error in LogCat:

E/SysUtils﹕ ApplicationContext is null in ApplicationStatus

Does anyone knows about ApplicationStatus class? I am not having it in my project

It occurs when I am fast render textures in openGL

like image 765
Eu Vid Avatar asked Apr 30 '15 10:04

Eu Vid


1 Answers

I managed to work around it in my case. I was getting a NullPointerException when passing parameters to a intent.

My problem was passing extra variables directly when opening a new intent as follows.

  • Invoking code:

                intent.putExtra("markerdata: ", assetVO);
    
  • Receiving code:

    markerdata = (HashMap<String, Object>) getIntent().getSerializableExtra("markerdata");
    

I was getting always null after upgrading to Android Studio 1.3 2 days ago.

So my work around was enclosing the passed information in a bundle as:

  • Invoking code:

                Bundle b = new Bundle();
                b.putSerializable("markerdata", assetVO);
                intent.putExtras(b);
    
  • Receiving code:

    Bundle extras = getIntent().getExtras();
    markerdata = (HashMap<String, Object>) extras.getSerializable("markerdata");
    

and now it works. Hope it helps someone else.

like image 77
pellyadolfo Avatar answered Oct 31 '22 22:10

pellyadolfo