Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeException #2054

Closed
dogi opened this issue Jun 17, 2024 · 2 comments · Fixed by #2157
Closed

RuntimeException #2054

dogi opened this issue Jun 17, 2024 · 2 comments · Fixed by #2157
Assignees

Comments

@dogi
Copy link
Member

dogi commented Jun 17, 2024

Exception java.lang.RuntimeException: Unable to start activity ComponentInfo{io.treehouses.remote/io.treehouses.remote.InitialActivity}: kotlin.UninitializedPropertyAccessException: lateinit property mChatService has not been initialized
  at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:3538)
  at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:3716)
  at android.app.ActivityThread.handleRelaunchActivityInner (ActivityThread.java:5661)
  at android.app.ActivityThread.handleRelaunchActivity (ActivityThread.java:5524)
  at android.app.servertransaction.ActivityRelaunchItem.execute (ActivityRelaunchItem.java:69)
  at android.app.servertransaction.TransactionExecutor.executeCallbacks (TransactionExecutor.java:135)
  at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:95)
  at android.app.ClientTransactionHandler.executeTransaction (ClientTransactionHandler.java:58)
  at android.app.ActivityThread.handleRelaunchActivityLocally (ActivityThread.java:5578)
  at android.app.ActivityThread.access$3300 (ActivityThread.java:263)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2154)
  at android.os.Handler.dispatchMessage (Handler.java:106)
  at androidx.test.espresso.base.Interrogator.loopAndInterrogate (Interrogator.java:10)
  at androidx.test.espresso.base.UiControllerImpl.loopUntil (UiControllerImpl.java:7)
  at androidx.test.espresso.base.UiControllerImpl.loopUntil (UiControllerImpl.java:1)
  at androidx.test.espresso.base.UiControllerImpl.loopMainThreadForAtLeast (UiControllerImpl.java:7)
  at androidx.test.espresso.action.Tap$1.sendTap (Tap.java:4)
  at androidx.test.espresso.action.GeneralClickAction.perform (GeneralClickAction.java:4)
  at androidx.test.espresso.ViewInteraction$SingleExecutionViewAction.perform (ViewInteraction.java:2)
  at androidx.test.espresso.ViewInteraction.doPerform (ViewInteraction.java:23)
  at androidx.test.espresso.ViewInteraction.-$$Nest$mdoPerform
  at androidx.test.espresso.ViewInteraction$1.call (ViewInteraction.java:6)
  at androidx.test.espresso.ViewInteraction$1.call (ViewInteraction.java:1)
  at java.util.concurrent.FutureTask.run (FutureTask.java:266)
  at android.os.Handler.handleCallback (Handler.java:938)
  at android.os.Handler.dispatchMessage (Handler.java:99)
  at android.os.Looper.loop (Looper.java:240)
  at android.app.ActivityThread.main (ActivityThread.java:8000)
  at java.lang.reflect.Method.invoke
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:603)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:947)
Caused by kotlin.UninitializedPropertyAccessException: lateinit property mChatService has not been initialized
  at io.treehouses.remote.BaseInitialActivity.getMChatService (BaseInitialActivity.kt:40)
  at io.treehouses.remote.BaseInitialActivity.getChatService (BaseInitialActivity.kt:54)
  at io.treehouses.remote.bases.BaseFragment.onAttach (BaseFragment.kt:25)
  at io.treehouses.remote.ui.home.HomeFragment.onAttach (HomeFragment.kt:309)
  at androidx.fragment.app.Fragment.performAttach (Fragment.java:3071)
  at androidx.fragment.app.FragmentStateManager.attach (FragmentStateManager.java:502)
  at androidx.fragment.app.FragmentStateManager.moveToExpectedState (FragmentStateManager.java:271)
  at androidx.fragment.app.FragmentStore.moveToExpectedState (FragmentStore.java:122)
  at androidx.fragment.app.FragmentManager.moveToState (FragmentManager.java:1663)
  at androidx.fragment.app.FragmentManager.dispatchStateChange (FragmentManager.java:3247)
  at androidx.fragment.app.FragmentManager.dispatchCreate (FragmentManager.java:3154)
  at androidx.fragment.app.FragmentController.dispatchCreate (FragmentController.java:252)
  at androidx.fragment.app.FragmentActivity.onCreate (FragmentActivity.java:219)
  at io.treehouses.remote.BaseInitialActivity.onCreate (BaseInitialActivity.kt:43)
  at io.treehouses.remote.InitialActivity.onCreate (InitialActivity.kt:37)
  at android.app.Activity.performCreate (Activity.java:8071)
  at android.app.Activity.performCreate (Activity.java:8054)
  at android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1309)
  at androidx.test.runner.MonitoringInstrumentation.callActivityOnCreate (MonitoringInstrumentation.java:2)
  at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:3508)
@dogi
Copy link
Member Author

dogi commented Jun 17, 2024

#2031

@dogi
Copy link
Member Author

dogi commented Jun 25, 2024

Exception java.lang.RuntimeException: Unable to start activity ComponentInfo{io.treehouses.remote/io.treehouses.remote.InitialActivity}: kotlin.UninitializedPropertyAccessException: lateinit property mChatService has not been initialized
at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:3707)
at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:3864)
at android.app.ActivityThread.handleRelaunchActivityInner (ActivityThread.java:5811)
at android.app.ActivityThread.handleRelaunchActivity (ActivityThread.java:5703)
at android.app.servertransaction.ActivityRelaunchItem.execute (ActivityRelaunchItem.java:71)
at android.app.servertransaction.ActivityTransactionItem.execute (ActivityTransactionItem.java:45)
at android.app.servertransaction.TransactionExecutor.executeCallbacks (TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2253)
at android.os.Handler.dispatchMessage (Handler.java:106)
at android.os.Looper.loopOnce (Looper.java:201)
at android.os.Looper.loop (Looper.java:288)
at android.app.ActivityThread.main (ActivityThread.java:7870)
at java.lang.reflect.Method.invoke
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1003)
Caused by kotlin.UninitializedPropertyAccessException: lateinit property mChatService has not been initialized
at io.treehouses.remote.BaseInitialActivity.getMChatService (BaseInitialActivity.kt:40)
at io.treehouses.remote.BaseInitialActivity.getChatService (BaseInitialActivity.kt:54)
at io.treehouses.remote.bases.BaseFragment.onAttach (BaseFragment.kt:25)
at io.treehouses.remote.ui.home.HomeFragment.onAttach (HomeFragment.kt:309)
at androidx.fragment.app.Fragment.performAttach (Fragment.java:3071)
at androidx.fragment.app.FragmentStateManager.attach (FragmentStateManager.java:502)
at androidx.fragment.app.FragmentStateManager.moveToExpectedState (FragmentStateManager.java:271)
at androidx.fragment.app.FragmentStore.moveToExpectedState (FragmentStore.java:122)
at androidx.fragment.app.FragmentManager.moveToState (FragmentManager.java:1663)
at androidx.fragment.app.FragmentManager.dispatchStateChange (FragmentManager.java:3247)
at androidx.fragment.app.FragmentManager.dispatchCreate (FragmentManager.java:3154)
at androidx.fragment.app.FragmentController.dispatchCreate (FragmentController.java:252)
at androidx.fragment.app.FragmentActivity.onCreate (FragmentActivity.java:219)
at io.treehouses.remote.BaseInitialActivity.onCreate (BaseInitialActivity.kt:43)
at io.treehouses.remote.InitialActivity.onCreate (InitialActivity.kt:37)
at android.app.Activity.performCreate (Activity.java:8074)
at android.app.Activity.performCreate (Activity.java:8054)
at android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1341)
at androidx.test.runner.MonitoringInstrumentation.callActivityOnCreate (MonitoringInstrumentation.java:2)
at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:3688)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants