App crashes and gives this error java.lang.NullPointerException: null cannot be cast to non-null type android.content.Context
i am new to android development,any help will be really appreciated,
here is the code
class Dashboard : Fragment() {
lateinit var recycle:RecyclerView
lateinit var reLayout:RecyclerView.LayoutManager
lateinit var RecObj: AdapterData
var bookInfoList = arrayListOf()
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?,savedInstanceState: Bundle?): View? {
val view = inflater.inflate(R.layout.fragment_dashboard, container, false)
recycle =...