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)
Jul 15
'24 21:07
dogi