title: A long-running Parse operation is being executed on the main thread
body: <p>I am getting the error:</p>
  
  <blockquote>
    <p>"A long-running Parse operation is being executed on the main thread. Break on warnParseOperationOnMainThread() to debug."</p>
  </blockquote>
  
  <p>and</p>
  
  <blockquote>
    <p>"Break on warnParseOperationOnMainThread() to debug."</p>
  </blockquote>
  
  <p>I'm unable to locate the error within my code. Can someone please tell me what I'm doing wrong?</p>
  
  <pre><code>PFQuery *query = [PFQuery queryWithClassName:@"User"];
  [query getObjectInBackgroundWithId:[[PFUser currentUser] objectId] block:^(PFObject *object, NSError *error) {
  
      self.firstName = object[@"firstname"];
      self.lastName = object[@"lastname"];
  
      self.nameLabel.text = [[NSArray arrayWithObjects:self.firstName, self.lastName, nil] componentsJoinedByString:@" "];
  }];
  </code></pre>