OSDN Git Service

Should trust my own code
authorGrace Kloba <klobag@google.com>
Thu, 28 Jan 2010 19:39:15 +0000 (11:39 -0800)
committerGrace Kloba <klobag@google.com>
Thu, 28 Jan 2010 19:39:15 +0000 (11:39 -0800)
src/com/android/browser/BrowserActivity.java

index 2f1c3df..90bacad 100644 (file)
@@ -638,7 +638,7 @@ public class BrowserActivity extends Activity
                 if (url != null && url.startsWith("http")) {
                     final Bundle pairs = intent
                             .getBundleExtra(Browser.EXTRA_HEADERS);
-                    if (!pairs.isEmpty()) {
+                    if (pairs != null && !pairs.isEmpty()) {
                         Iterator<String> iter = pairs.keySet().iterator();
                         headers = new HashMap<String, String>();
                         while (iter.hasNext()) {