diff options
author | rowanbeentje <rowan@beent.je> | 2012-11-19 22:48:27 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2012-11-19 22:48:27 +0000 |
commit | ddc615f88f34276294e2bf2e9fbe759637f4c9f7 (patch) | |
tree | 421eb1155aa582801b2031243bb1aad5e2815eb5 | |
parent | 7ce6e8149f1f1050036d1682907e453f1f205eee (diff) | |
download | sequelpro-ddc615f88f34276294e2bf2e9fbe759637f4c9f7.tar.gz sequelpro-ddc615f88f34276294e2bf2e9fbe759637f4c9f7.tar.bz2 sequelpro-ddc615f88f34276294e2bf2e9fbe759637f4c9f7.zip |
- Fix exceptions when filtering the table process list on high-load servers where the time can sometimes still be NULL as the thread is setting up
-rw-r--r-- | Source/SPProcessListController.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPProcessListController.m b/Source/SPProcessListController.m index 3b497448..ec795116 100644 --- a/Source/SPProcessListController.m +++ b/Source/SPProcessListController.m @@ -829,7 +829,7 @@ static NSString *SPTableViewIDColumnIdentifier = @"Id"; ([[process objectForKey:@"Host"] rangeOfString:filterString options:NSCaseInsensitiveSearch].location != NSNotFound) || ((![[process objectForKey:@"db"] isNSNull]) && ([[process objectForKey:@"db"] rangeOfString:filterString options:NSCaseInsensitiveSearch].location != NSNotFound)) || ([[process objectForKey:@"Command"] rangeOfString:filterString options:NSCaseInsensitiveSearch].location != NSNotFound) || - ([[[process objectForKey:@"Time"] stringValue] rangeOfString:filterString options:NSCaseInsensitiveSearch].location != NSNotFound) || + ((![[process objectForKey:@"Time"] isNSNull]) && ([[[process objectForKey:@"Time"] stringValue] rangeOfString:filterString options:NSCaseInsensitiveSearch].location != NSNotFound)) || ((![[process objectForKey:@"State"] isNSNull]) && ([[process objectForKey:@"State"] rangeOfString:filterString options:NSCaseInsensitiveSearch].location != NSNotFound)) || ((![[process objectForKey:@"Info"] isNSNull]) && ([[process objectForKey:@"Info"] rangeOfString:filterString options:NSCaseInsensitiveSearch].location != NSNotFound))) { |