aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2012-11-19 22:48:27 +0000
committerrowanbeentje <rowan@beent.je>2012-11-19 22:48:27 +0000
commitddc615f88f34276294e2bf2e9fbe759637f4c9f7 (patch)
tree421eb1155aa582801b2031243bb1aad5e2815eb5
parent7ce6e8149f1f1050036d1682907e453f1f205eee (diff)
downloadsequelpro-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.m2
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)))
{