summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--WebCore/platform/android/GeolocationServiceAndroid.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/WebCore/platform/android/GeolocationServiceAndroid.cpp b/WebCore/platform/android/GeolocationServiceAndroid.cpp
index aaa7af7..61043fb 100644
--- a/WebCore/platform/android/GeolocationServiceAndroid.cpp
+++ b/WebCore/platform/android/GeolocationServiceAndroid.cpp
@@ -115,14 +115,14 @@ void GeolocationServiceAndroid::stopUpdating()
void GeolocationServiceAndroid::suspend()
{
- ASSERT(m_javaBridge);
- m_javaBridge->stop();
+ if (m_javaBridge)
+ m_javaBridge->stop();
}
void GeolocationServiceAndroid::resume()
{
- ASSERT(m_javaBridge);
- m_javaBridge->start();
+ if (m_javaBridge)
+ m_javaBridge->start();
}
// Note that there is no guarantee that subsequent calls to this method offer a