Skip to content

Commit

Permalink
Fix crash on opening realm DB (FLEXTool#622)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario Cape committed Jun 5, 2023
1 parent 81f748a commit 61ff9e9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ - (instancetype)initWithColumns:(NSArray<NSString *> *)columnNames
tableName:(nullable NSString *)tableName
database:(nullable id<FLEXDatabaseManager>)databaseManager {
// Must supply all optional parameters as one, or none
BOOL all = rowIDs && tableName && databaseManager;
BOOL none = !rowIDs && !tableName && !databaseManager;
BOOL all = tableName && databaseManager;
BOOL none = !tableName && !databaseManager;
NSParameterAssert(all || none);

self = [super init];
Expand Down

0 comments on commit 61ff9e9

Please sign in to comment.