Fix an assertion failure in CalendarPickerElement::hostInput().
[WebKit-https.git] / Source / WebCore / html / shadow / CalendarPickerElement.cpp
index 5358cca..b4176b2 100644 (file)
@@ -88,6 +88,8 @@ inline HTMLInputElement* CalendarPickerElement::hostInput()
 
 void CalendarPickerElement::defaultEventHandler(Event* event)
 {
+    if (!renderer())
+        return;
     HTMLInputElement* input = hostInput();
     if (input->readOnly() || input->disabled())
         return;