Fix gmail crash.

Change-Id: I009d44fce36e365e915b2ecbdfd94fdcee40adf8
This commit is contained in:
Patrick Scott
2010-07-22 14:00:19 -04:00
parent 65f71a7270
commit b77bcd1bb4

View File

@@ -4590,7 +4590,7 @@ public class WebView extends AbsoluteLayout
// user has touched a layer.
float gestureX = x;
float gestureY = y;
if (!detector.isInProgress()) {
if (detector == null || !detector.isInProgress()) {
// The gesture for scrolling a layer is two fingers close together.
// FIXME: we may consider giving WebKit an option to handle
// multi-touch events later.