NoMethodError in Job_opening#show

Showing job/_job.rhtml where line #4 raised:

You have a nil object when you didn't expect it!
The error occurred while evaluating nil.reference

Extracted source (around line #4):

1: <table class="pretty-vertical-table job-table">
2:   <tr>
3:     <th scope="row"><%= s(:job_reference) %></th>
4:     <td><%= job.reference %></td>
5:   </tr>
6:   <tr>
7:     <th scope="row"><%= s(:job_title) %></th>

Trace of template inclusion: /job_opening/show.rhtml

RAILS_ROOT: /srv/www/vhosts/hcs-bwel/releases/201909172230

Application Trace | Framework Trace | Full Trace
app/views/job/_job.rhtml:4:in `_run_erb_47app47views47job47_job46rhtml'
app/views/job_opening/show.rhtml:24:in `_run_erb_47app47views47job_opening47show46rhtml'

Request

Parameters:

{"id"=>"181"}

Show session dump

Response

Headers:

{"cookie"=>[],
 "Cache-Control"=>"no-cache",
 "X-Powered-By"=>nil}