Handle empty categories

This commit is contained in:
Ludovic Marcotte
2014-10-16 09:03:34 -04:00
parent d6ff9038ce
commit b2cab02d70
+1 -1
View File
@@ -222,7 +222,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
[self setNote: o];
// Categories
if ((o = [theValues objectForKey: @"Categories"]))
if ((o = [theValues objectForKey: @"Categories"]) && [o length])
[self setCategories: o];
// Birthday