From 235e1f913b8431a0d0efe080c29ebc0e1ca92456 Mon Sep 17 00:00:00 2001 From: Sander Bogaert Date: Sat, 13 Oct 2012 10:40:13 -0400 Subject: [PATCH] Avoid needless nullpointers. --- src/com/fsck/k9/search/LocalSearch.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/fsck/k9/search/LocalSearch.java b/src/com/fsck/k9/search/LocalSearch.java index 6b07459c4..a9bff7348 100644 --- a/src/com/fsck/k9/search/LocalSearch.java +++ b/src/com/fsck/k9/search/LocalSearch.java @@ -298,7 +298,7 @@ public class LocalSearch implements SearchSpecification { * @return Name of the search. */ public String getName() { - return mName; + return (mName == null ? "" : mName); } /**