title: Exc bad access in table view - iOS
body: <p>I have an array that fill when user click search button. If there is no data for that response, server return empty response and therefore here is an empty array. I wonder, why when i fire fake request it return me <code>EXC_BAD_ACCESS (code=1, address = 0xa)</code>.</p>
  
  <p>It point to:</p>
  
  <pre><code>- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
  {
  
      if (_arrValues.count &gt; 0)
          return self.arrValues.count;
  
      return 0;
  }
  </code></pre>
  
  <p>To line:</p>
  
  <pre><code>if (_arrValues.count &gt; 0)
  </code></pre>
  
  <p>In <code>viewDidLoad</code> I did allocate an array like that:</p>
  
  <pre><code>_arrValues   = @[];
  </code></pre>
  
  <p>So, I cant understand why this occurs. Any suggestions?<br>
  In debugger it simply prints an array memory and ISA pointer, obviously there is no data if user search fake request that return nothing.</p>
  
  <p>From debug panel:</p>
  
  <p><a href="https://i.stack.imgur.com/fNup9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fNup9.png" alt="enter image description here"></a></p>
  
  <p>When I update my server part like that (remove response and always create an empty array) problem is disappeared. Probably there is an issue in my request/mapping part:</p>
  
  <pre><code>  //    _arrValues = [eventsMgr getEventsFromResponse:x];
          _arrValues = @[];
  </code></pre>