Instead of just having
... = [NSString stringWithUTF8String:
(char *)sqlite3_column_text(compiledStatement, 15)]
You want to use something like
... = ((char *)sqlite3_column_text(compiledStatement, 15)) ?
[NSString stringWithUTF8String:
(char *)sqlite3_column_text(compiledStatement, 15)] : nil;