Click here to Skip to main content
15,891,375 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am making an app in kotlin and I am continuously getting an error while running my app about which I don't have any idea. It says the error is from this code

FirebaseFirestore.getInstance().collection("profileImages").document(contentDTOs[p1].uid!!).get().addOnCompleteListener { task ->
    if(task.isSuccessful){
        val url = task.result!!["image"]
        Glide.with(view?.context).load(url).apply(RequestOptions().circleCrop()).into(
            view?.detailviewitem_profile_image
        )
    }
}


What I have tried:

I have tried to run my app and while moving from one fragment to other I am getting this error
Posted
Updated 22-Jul-20 5:18am

1 solution

Some suggestions at cannot start a load on a not yet attached view - Google Search[^].

Also, it is difficult to figure out what is happening (or supposed to happen) when you write such convoluted compound statements as you have above. It's fine when they work, but debugging them is not easy.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900