Skip to content

Commit 61ff9e9

Browse files
author
Mario Cape
committed
Fix crash on opening realm DB (FLEXTool#622)
1 parent 81f748a commit 61ff9e9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Classes/GlobalStateExplorers/DatabaseBrowser/FLEXTableContentViewController.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ - (instancetype)initWithColumns:(NSArray<NSString *> *)columnNames
5454
tableName:(nullable NSString *)tableName
5555
database:(nullable id<FLEXDatabaseManager>)databaseManager {
5656
// Must supply all optional parameters as one, or none
57-
BOOL all = rowIDs && tableName && databaseManager;
58-
BOOL none = !rowIDs && !tableName && !databaseManager;
57+
BOOL all = tableName && databaseManager;
58+
BOOL none = !tableName && !databaseManager;
5959
NSParameterAssert(all || none);
6060

6161
self = [super init];

0 commit comments

Comments
 (0)