diff --git a/mobile/android/base/health/BrowserHealthRecorder.java b/mobile/android/base/health/BrowserHealthRecorder.java index ba80341eb0da..63778c5b927f 100644 --- a/mobile/android/base/health/BrowserHealthRecorder.java +++ b/mobile/android/base/health/BrowserHealthRecorder.java @@ -689,7 +689,7 @@ public class BrowserHealthRecorder implements GeckoEventListener { Log.d(LOG_TAG, "Ignoring search without location."); return; } - recordSearch(message.getString("identifier"), message.getString("location")); + recordSearch(message.optString("identifier", null), message.getString("location")); return; } } catch (Exception e) {