应用程序崩溃-Android Studio

问题描述 投票:-1回答:1

我的应用程序不断崩溃。该应用从一开始就崩溃了。我附上了与错误有关的logcat和代码部分。请帮助我:)

Here is the logcat

和第14行的代码

class UserAdapter(mContext:上下文,移动用户:列表,isChatCheck:布尔值):RecyclerView.Adapter()

第44行的代码

{
        val user: Users? = mUsers[i]
        holder.userNameTXT.text = user!!.getusername()
        Picasso.get().load(user.getprofile()).placeholder(R.drawable.profile).into(holder.profileImageView)
    }
java android generics
1个回答
0
投票

错误显示

user.getprofile()

为空或为空。请调试该应用程序,并检查user.getProfile()是否返回空字符串或null

© www.soinside.com 2019 - 2024. All rights reserved.