Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8010103
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T18:38:22+00:00 2026-06-04T18:38:22+00:00

I have a problem with inserting data to a cell in tableView. When I

  • 0

I have a problem with inserting data to a cell in tableView. When I searched for the source of error I saw that my webservice is returning null values. So when I call the name to the cell it crashes argumenting that is null. So, cause is a database issue, I just want to skip adding the ones that have for example: { “name”:”null”}

In others services, i get null values empty… So It does not cause problems.. I think it is the null value as a string.

Here is an example:

{
    "24_7" = 0;
    address = "avenue innsbruck";
    city = GRENOBLE;
    country = FR;
    dst = "14007.2046741012";
    "h_saturday" = " - ";
    "h_sunday" = " - ";
    "h_week" = " - ";
    id = 324;
    "location_lat" = "45.154";
    "location_long" = "5.73387";
    name = "<null>";
    "tel_1" = 0476544254;
    "tel_2" = "";
    zipcode = 38000;
}

I just want to skip adding this when I’m parsing the json in here.

NSString *theJSON = [request responseString];

SBJsonParser *parser = [[SBJsonParser alloc] init];

NSDictionary *jsonDictionary = [parser objectWithString:theJSON error:nil];

//NSLog(@"OkRequest || %@ ", jsonDictionary);

[_jsonStation removeAllObjects];
for (NSDictionary *taxi in jsonDictionary)
{

    [_jsonStation addObject:taxi];

}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T18:38:24+00:00Added an answer on June 4, 2026 at 6:38 pm

    You can test if your object is null by doing this in your loop:

    if ([taxi isKindOfClass:[NSNull class]])
        continue;
    //else, process it
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem that whenever I'm inserting data using coredata, everything's going fine.
I have a problem inserting values on my table. -------------------------------------------- | products_id | related_products_ids
I have a problem in php code inserting values into database (I use PHPMyAdmin).
I'm having a strange problem in that I have php inserting text into a
I have an Excel source going into an OLE DB destination. I'm inserting data
I'm using the node-postgres module for node.js and I have a problem inserting data.
i have a problem in inserting some data into a table. I have done
I have problem with updating my datagridview after inserting new data to table. It
I have a problem with inserting data into SQLite database using QSqlTableModel. The table
I have a problem in inserting data from a sheet into database. Some people

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.