2016年8月11日 星期四

why i go to the PreferenceFrahment,than start the Tabata,than save,has error?

30 why i go to the PreferenceFrahment,than start the Tabata,than save,has error?

06-29 16:41:12.251 23856-23856/pom.poly.com.tabatatimer E/AndroidRuntime: FATAL EXCEPTION: main
                                                                         Process: pom.poly.com.tabatatimer, PID: 23856
                                                                         java.lang.NullPointerException: Attempt to invoke virtual method 'android.support.v4.app.FragmentManager android.support.v4.app.FragmentActivity.getSupportFragmentManager()' on a null object reference
                                                                             at pom.poly.com.tabatatimer.Fragment.CalenderFragment.createAndReplayCalenderFragment(CalenderFragment.java:100)
                                                                             at pom.poly.com.tabatatimer.Fragment.CalenderFragment.update(CalenderFragment.java:183)
                                                                             at pom.poly.com.tabatatimer.ContentProvider.Eventinf.notifyChanged(Eventinf.java:83)
                                                                             at pom.poly.com.tabatatimer.ContentProvider.Eventinf.save(Eventinf.java:90)
                                                                             at pom.poly.com.tabatatimer.Fragment.FinishDialogFragment.onClick(FinishDialogFragment.java:119)
                                                                             at pom.poly.com.tabatatimer.Fragment.FinishDialogFragment$$ViewBinder$InnerUnbinder$2.doClick(FinishDialogFragment$$ViewBinder.java:46)
                                                                             at butterknife.internal.DebouncingOnClickListener.onClick(DebouncingOnClickListener.java:22)
                                                                             at android.view.View.performClick(View.java:4780)
                                                                             at android.view.View$PerformClick.run(View.java:19866)
                                                                             at android.os.Handler.handleCallback(Handler.java:739)
                                                                             at android.os.Handler.dispatchMessage(Handler.java:95)
                                                                             at android.os.Looper.loop(Looper.java:135)
                                                                             at android.app.ActivityThread.main(ActivityThread.java:5254)
                                                                             at java.lang.reflect.Method.invoke(Native Method)
                                                                             at java.lang.reflect.Method.invoke(Method.java:372)
                                                                             at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
                                                                             at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)



the getActivity return null