SaveText.Ru

Без имени
  1. java.lang.RuntimeException: Unable to start activity ComponentInfo{com.srg.mydiabe4/com.srg.mydiabe4.Jornal_Activity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference
  2.         at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2683)
  3.         at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2744)
  4.         at android.app.ActivityThread.-wrap12(ActivityThread.java)
  5.         at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1493)
  6.         at android.os.Handler.dispatchMessage(Handler.java:102)
  7.         at android.os.Looper.loop(Looper.java:154)
  8.         at android.app.ActivityThread.main(ActivityThread.java:6195)
  9.         at java.lang.reflect.Method.invoke(Native Method)
  10.         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:874)
  11.         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:764)
  12. Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference
  13.         at com.srg.mydiabe4.GlobalModule.setMenuColorText(GlobalModule.java:722)
  14.         at com.srg.mydiabe4.Jornal_Fragment.onCreateOptionsMenu(Jornal_Fragment.java:262)
  15.         at android.support.v4.app.Fragment.performCreateOptionsMenu(Fragment.java:1582)
  16.         at android.support.v4.app.FragmentManagerImpl.dispatchCreateOptionsMenu(FragmentManager.java:1967)
  17.         at android.support.v4.app.FragmentActivity.onCreatePanelMenu(FragmentActivity.java:225)
  18.         at com.android.internal.policy.PhoneWindow.preparePanel(PhoneWindow.java:619)
  19.         at com.android.internal.policy.PhoneWindow.doInvalidatePanelMenu(PhoneWindow.java:1005)
  20.         at com.android.internal.policy.PhoneWindow$1.run(PhoneWindow.java:264)
  21.         at com.android.internal.policy.PhoneWindow.doPendingInvalidatePanelMenu(PhoneWindow.java:976)
  22.         at com.android.internal.policy.PhoneWindow.restoreHierarchyState(PhoneWindow.java:2166)
  23.         at android.app.Activity.onRestoreInstanceState(Activity.java:1062)
  24.         at android.app.Activity.performRestoreInstanceState(Activity.java:1017)
  25.         at android.app.Instrumentation.callActivityOnRestoreInstanceState(Instrumentation.java:1175)
  26.         at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2656)
  27.         ... 9 more
  28.  

Share with your friends:

Print