Why the app crashes when to retrieve the image in table view? : <p>Why the app crashes when to retrieve the image in table view ? I am using Core Data to save and retrieve the image.</p>

<pre><code>func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -&gt; UITableViewCell
    {
        let cell = tableView.dequeueReusableCell(withIdentifier: "ShowDataCell", for: indexPath) as! ShowDataTVCell

        let visitor = visDetail[indexPath.row]

        //convert Data into UIImage
        let imgData = UIImage(data: visitor.image!)
        cell.imgVis.image = imgData
        cell.lblVisName.text = visitor.visitor_name

        return cell
    }
</code></pre>
