Guillehf01 / go-bees

Android app for monitoring bee hives activity.
http://gobees.io/
GNU General Public License v3.0
0 stars 0 forks source link

NullPointerException al pasar a landscape #33

Closed Guillehf01 closed 3 years ago

Guillehf01 commented 3 years ago

En alguna actividades si pasas a landscape y das a back button salta una excepción.

Process: com.davidmiguel.gobees.mock, PID: 21312
 java.lang.RuntimeException: Unable to resume activity {com.davidmiguel.gobees.mock/com.davidmiguel.gobees.hive.HiveActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'void com.davidmiguel.gobees.hive.HiveContract$Presenter.start()' on a null object reference
     at android.app.ActivityThread.performResumeActivity(ActivityThread.java)
     at android.app.ActivityThread.handleResumeActivity(ActivityThread.java)
     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java)
     at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java)
     at android.app.ActivityThread.access$1000(ActivityThread.java)
     at android.app.ActivityThread$H.handleMessage(ActivityThread.java)
     at android.os.Handler.dispatchMessage(Handler.java)
     at android.os.Looper.loop(Looper.java)
     at android.app.ActivityThread.main(ActivityThread.java)
     at java.lang.reflect.Method.invoke(Native Method)
     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)
     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java)
  Caused by: java.lang.NullPointerException: Attempt to invoke interface method 'void com.davidmiguel.gobees.hive.HiveContract$Presenter.start()' on a null object reference
     at com.davidmiguel.gobees.hive.HiveRecordingsFragment.onResume(HiveRecordingsFragment.java:119)
     at android.support.v4.app.Fragment.performResume(Fragment.java:2133)
     at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1156)
     at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1295)
     at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1277)
     at android.support.v4.app.FragmentManagerImpl.dispatchResume(FragmentManager.java:2164)
     at android.support.v4.app.FragmentController.dispatchResume(FragmentController.java:223)
     at android.support.v4.app.FragmentActivity.onResumeFragments(FragmentActivity.java:509)
     at android.support.v4.app.FragmentActivity.onPostResume(FragmentActivity.java:498)
     at android.support.v7.app.AppCompatActivity.onPostResume(AppCompatActivity.java:175)
     at android.app.Activity.performResume(Activity.java)
Guillehf01 commented 3 years ago

Temporal fix exception when orientation changes #117 712b070