diff options
Diffstat (limited to 'Source/SPDatabaseData.m')
-rw-r--r-- | Source/SPDatabaseData.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPDatabaseData.m b/Source/SPDatabaseData.m index b27863b9..c3649328 100644 --- a/Source/SPDatabaseData.m +++ b/Source/SPDatabaseData.m @@ -259,7 +259,7 @@ const CHAR_SETS charsets[] = */ - (NSArray *)getDatabaseCollationsForEncoding:(NSString *)encoding { - if ((characterSetEncoding == nil) || (![characterSetEncoding isEqualToString:encoding]) || ([characterSetCollations count] == 0)) { + if (encoding && ((characterSetEncoding == nil) || (![characterSetEncoding isEqualToString:encoding]) || ([characterSetCollations count] == 0))) { [characterSetEncoding release]; [characterSetCollations removeAllObjects]; |