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 #2090

Open
dogi opened this issue Jul 15, 2024 · 0 comments · May be fixed by #2154
Open

RuntimeException #2090

dogi opened this issue Jul 15, 2024 · 0 comments · May be fixed by #2154
Assignees

Comments

@dogi
Copy link
Member

dogi commented Jul 15, 2024

Exception java.lang.RuntimeException:
  at androidx.lifecycle.ViewModelProvider$AndroidViewModelFactory.create (ViewModelProvider.android.kt:315)
  at androidx.lifecycle.ViewModelProvider$AndroidViewModelFactory.create (ViewModelProvider.android.kt:299)
  at androidx.lifecycle.ViewModelProvider$AndroidViewModelFactory.create (ViewModelProvider.android.kt:273)
  at androidx.lifecycle.SavedStateViewModelFactory.create (SavedStateViewModelFactory.kt:128)
  at androidx.lifecycle.ViewModelProvider$Factory$-CC.$default$create (ViewModelProvider.android.kt:158)
  at androidx.lifecycle.SavedStateViewModelFactory.create
  at androidx.lifecycle.viewmodel.ViewModelProviderImpl_androidKt.createViewModel (ViewModelProviderImpl.android.kt:34)
  at androidx.lifecycle.viewmodel.ViewModelProviderImpl.getViewModel$lifecycle_viewmodel_release (ViewModelProviderImpl.kt:65)
  at androidx.lifecycle.viewmodel.ViewModelProviderImpl.getViewModel$lifecycle_viewmodel_release$default (ViewModelProviderImpl.kt:47)
  at androidx.lifecycle.ViewModelProvider.get (ViewModelProvider.android.kt:91)
  at androidx.lifecycle.ViewModelLazy.getValue (ViewModelLazy.kt:51)
  at androidx.lifecycle.ViewModelLazy.getValue (ViewModelLazy.kt:35)
  at io.treehouses.remote.ui.home.BaseHomeFragment.getViewModel (BaseHomeFragment.kt:35)
  at io.treehouses.remote.ui.home.HomeFragment.observeConnectionState (HomeFragment.kt:244)
  at io.treehouses.remote.ui.home.HomeFragment.onViewCreated (HomeFragment.kt:69)
  at androidx.fragment.app.Fragment.performViewCreated (Fragment.java:3148)
  at androidx.fragment.app.FragmentStateManager.createView (FragmentStateManager.java:600)
  at androidx.fragment.app.FragmentStateManager.moveToExpectedState (FragmentStateManager.java:278)
  at androidx.fragment.app.FragmentStore.moveToExpectedState (FragmentStore.java:114)
  at androidx.fragment.app.FragmentManager.moveToState (FragmentManager.java:1663)
  at androidx.fragment.app.FragmentManager.dispatchStateChange (FragmentManager.java:3247)
  at androidx.fragment.app.FragmentManager.dispatchActivityCreated (FragmentManager.java:3165)
  at androidx.fragment.app.FragmentController.dispatchActivityCreated (FragmentController.java:263)
  at androidx.fragment.app.FragmentActivity.onStart (FragmentActivity.java:350)
  at androidx.appcompat.app.AppCompatActivity.onStart (AppCompatActivity.java:251)
  at android.app.Instrumentation.callActivityOnStart (Instrumentation.java:1571)
  at android.app.Activity.performStart (Activity.java:8621)
  at android.app.ActivityThread.handleStartActivity (ActivityThread.java:3945)
  at android.app.servertransaction.TransactionExecutor.performLifecycleSequence (TransactionExecutor.java:221)
  at android.app.servertransaction.TransactionExecutor.cycleToPath (TransactionExecutor.java:201)
  at android.app.servertransaction.TransactionExecutor.executeLifecycleState (TransactionExecutor.java:173)
  at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:97)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2426)
  at android.os.Handler.dispatchMessage (Handler.java:106)
  at android.os.Looper.loopOnce (Looper.java:211)
  at android.os.Looper.loop (Looper.java:300)
  at android.app.ActivityThread.main (ActivityThread.java:8503)
  at java.lang.reflect.Method.invoke
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:561)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:954)
Caused by java.lang.reflect.InvocationTargetException:
  at java.lang.reflect.Constructor.newInstance0
  at java.lang.reflect.Constructor.newInstance (Constructor.java:343)
  at androidx.lifecycle.ViewModelProvider$AndroidViewModelFactory.create (ViewModelProvider.android.kt:307)
Caused by java.lang.NullPointerException:
  at io.treehouses.remote.bases.FragmentViewModel.loadBT (FragmentViewModel.kt:113)
  at io.treehouses.remote.bases.FragmentViewModel.<init> (FragmentViewModel.kt:152)
  at io.treehouses.remote.ui.home.HomeViewModel.<init> (HomeViewModel.kt:21)
@Okuro3499 Okuro3499 self-assigned this Nov 11, 2024
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