FirebaseDatabase1 modellogcatRefview
had to change: val model = snapshot.getValue(BestDealModel::class.java) tempList.add(model!!) to val model = itemSnapshot.getValue(BestDealModel::class.java) tempList.add(model!!)