adium/adium

49d9191a4221
Parents b0fba8081476
Children 53975b9cbd27
The log index failing to be created can still happen. Try not to crash here.
--- a/Source/AILogViewerWindowController.m Thu Jun 21 01:06:16 2012 +0200
+++ b/Source/AILogViewerWindowController.m Thu Jun 21 20:57:36 2012 +0200
@@ -1563,6 +1563,11 @@
Boolean more = true;
unsigned long totalCount = 0;
+ if (!logSearchIndex) {
+ AILogWithSignature(@"Got a NULL logSearchIndex. This shouldn't happen!");
+ return;
+ }
+
[currentSearchLock lock];
if (currentSearch) {
SKSearchCancel(currentSearch);