Jak pozwolić NSMutableDictionary zaakceptować wartości „zerowe”?

Mam to stwierdzenie:

 [custData setObject: [rs stringForColumnIndex:2]  forKey: @"email"];

gdzie[rs stringForColumnIndex:2] uzyskane z SQLite3 d / b ma wartośćnil. Aplikacja ulega awarii powodując błąd:

NSCFDictionary setObject:forKey:]: attempt to insert nil value (key: email)'

Czy istnieje sposób, aby temu zapobiec? (jak ustawienie dlaNSMutableDictionary?)

AKTUALIZACJA: w końcu to zrobiłem:

[custData setObject: ([rs stringForColumnIndex:2] != nil? [rs stringForColumnIndex:2]:@"") forKey: @"email"];

questionAnswers(3)

yourAnswerToTheQuestion