diff --git a/ui/events/gestures/gesture_recognizer_impl.cc b/ui/events/gestures/gesture_recognizer_impl.cc index dbf8a24a2a57c6..446dc2c1634acb 100644 --- a/ui/events/gestures/gesture_recognizer_impl.cc +++ b/ui/events/gestures/gesture_recognizer_impl.cc @@ -40,6 +40,9 @@ void TransferConsumer( template bool RemoveValueFromMap(std::map* map, const Value& value) { bool removed = false; + // This is a bandaid fix for crbug/732232 that requires further investigation. + if (!map || map->empty()) + return removed; for (auto i = map->begin(); i != map->end();) { if (i->second == value) { map->erase(i++);