From 6280b5150b7ceb41f31a094e6a63b3741dcd2db5 Mon Sep 17 00:00:00 2001 From: Benjamin Steinwender Date: Wed, 5 Nov 2014 21:26:14 +0100 Subject: [PATCH] temporary fix for issue 257 --- MacPass/MPEntryViewController.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MacPass/MPEntryViewController.m b/MacPass/MPEntryViewController.m index 64cdf14f..5a3d8148 100644 --- a/MacPass/MPEntryViewController.m +++ b/MacPass/MPEntryViewController.m @@ -373,8 +373,9 @@ NSString *const _MPTableSecurCellView = @"PasswordCell"; } /* If a group is the current item, see if we already show that group + also test if an element has been selected (issue #257) */ - if(document.selectedItem == document.selectedGroup) { + if(document.selectedItem == document.selectedGroup && document.selectedItem != nil) { if(document.hasSearch) { /* If search was active, stop it and exit */ [document exitSearch:self];