Crashing on loading gallery adapter for recyclerview

class ViewHolder(itemView: View): RecyclerView.ViewHolder(itemView){

        var image : ImageView = view.findViewById(R.id.imageElement1)

        interface IPhotoInterface {

            fun onPhotoClick(stringPath:String): Unit
        }

    }