我的应用程序不断崩溃。该应用从一开始就崩溃了。我附上了与错误有关的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)
}
错误显示
user.getprofile()
为空或为空。请调试该应用程序,并检查user.getProfile()是否返回空字符串或null