When I try building a project, an error appears, indicated in the name of the topic. directs here:
if (arrList[position].color != null){
holder.itemView.cardView.setCardBackgroundColor(Color.parseColor(arrList[position].color))
}else{
holder.itemView.cardView.setCardBackgroundColor(Color.parseColor(R.color.ColorLightBlack.toString()))
}
if I remove the condition that is written in "else", the project starts without errors. Tried changing the color, nothing changed!