google / iosched

The Google I/O Android App
Apache License 2.0
21.77k stars 6.2k forks source link

Fix IllegalStateException when open FeedbackSessionFragment #389

Closed volkansahin45 closed 3 years ago

volkansahin45 commented 3 years ago

2021-08-31 11:33:56.398 5615-5615/com.google.samples.apps.iosched E/AndroidRuntime: FATAL EXCEPTION: main Process: com.google.samples.apps.iosched, PID: 5615 java.lang.IllegalStateException: Can't access the Fragment View's LifecycleOwner when getView() is null i.e., before onCreateView() or after onDestroyView() at androidx.fragment.app.Fragment.getViewLifecycleOwner(Fragment.java:361) at com.google.samples.apps.iosched.ui.sessiondetail.SessionFeedbackFragment.onCreateDialog(SessionFeedbackFragment.kt:148) at androidx.fragment.app.DialogFragment.prepareDialog(DialogFragment.java:648) at androidx.fragment.app.DialogFragment.onGetLayoutInflater(DialogFragment.java:562) at com.google.samples.apps.iosched.ui.sessiondetail.Hilt_SessionFeedbackFragment.onGetLayoutInflater(Hilt_SessionFeedbackFragment.java:70) at androidx.fragment.app.Fragment.performGetLayoutInflater(Fragment.java:1654) at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:493) at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:282) at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:2189) at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:2100) at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:2002) at androidx.fragment.app.FragmentManager$5.run(FragmentManager.java:524) at android.os.Handler.handleCallback(Handler.java:938) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:223) at android.app.ActivityThread.main(ActivityThread.java:7656) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)

google-cla[bot] commented 3 years ago

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. In order to pass this check, please resolve this problem and then comment @googlebot I fixed it.. If the bot doesn't comment, it means it doesn't think anything has changed.

ℹ️ Googlers: Go here for more info.