From 71c5e3c611cc9482e5dcea61790bcd9183eab88c Mon Sep 17 00:00:00 2001 From: cketti Date: Thu, 5 May 2011 02:54:20 +0200 Subject: [PATCH] Remove unnecessary null pointer check --- src/com/fsck/k9/helper/FileBrowserHelper.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/com/fsck/k9/helper/FileBrowserHelper.java b/src/com/fsck/k9/helper/FileBrowserHelper.java index 2ef2c78e9..3c8634c57 100644 --- a/src/com/fsck/k9/helper/FileBrowserHelper.java +++ b/src/com/fsck/k9/helper/FileBrowserHelper.java @@ -83,9 +83,8 @@ public class FileBrowserHelper { String intentAction = PICK_DIRECTORY_INTENTS[listIndex][0]; String uriPrefix = PICK_DIRECTORY_INTENTS[listIndex][1]; Intent intent = new Intent(intentAction); - if (startPath != null) { - intent.setData(Uri.parse(uriPrefix + startPath.getPath())); - } + intent.setData(Uri.parse(uriPrefix + startPath.getPath())); + try { c.startActivityForResult(intent, requestcode); success = true;