title: ActionView::Template::Error in Rails Application
body: <p>For this code in the view,</p>
  
  <pre><code>&lt;%= @activity.destination.try(:name) %&gt;
  </code></pre>
  
  <p>I sometimes get a template error:</p>
  
  <pre><code>ActionView::Template::Error (undefined method `destination' for nil:NilClass)
  </code></pre>
  
  <p>and sometimes not.</p>
  
  <p>What type of bug is this?</p>