title: Vue 2: Can't Get Past "Cannot Read Property"
body: <p>I just upgraded my app to Vue 2 and I can’t seem to get past this error: </p>
  
  <blockquote>
    <p>"Uncaught TypeError: Cannot read property 'length' of null at
    VueComponent.showChoices (eval at  (app.js:310),
    :33:32)”</p>
  </blockquote>
  
  <p>. I thought I was protecting from that with a conditional but this error has plagued me now for 3 hours. Here’s showChoices:</p>
  
  <pre><code>showChoices() {
      if(this.filtered) {
          if (this.search.length &gt; 2 &amp;&amp; this.filtered.length &gt; 0) {
              return true;
          }
      }
      return false;
  }
  </code></pre>