summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Source/WebCore/platform/qt/RenderThemeQStyle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/WebCore/platform/qt/RenderThemeQStyle.cpp b/Source/WebCore/platform/qt/RenderThemeQStyle.cpp
index f85a75bd4..14b989894 100644
--- a/Source/WebCore/platform/qt/RenderThemeQStyle.cpp
+++ b/Source/WebCore/platform/qt/RenderThemeQStyle.cpp
@@ -436,7 +436,7 @@ bool RenderThemeQStyle::paintSliderTrack(RenderObject* o, const PaintInfo& pi, c
p.styleOption.state |= QStyleFacade::State_Sunken;
// some styles need this to show a highlight on one side of the groove
- HTMLInputElement* slider = o->node()->toInputElement();
+ HTMLInputElement* slider = o->node() ? o->node()->toInputElement() : 0;
if (slider && slider->isSteppable()) {
p.styleOption.slider.upsideDown = (p.appearance == SliderHorizontalPart) && !o->style()->isLeftToRightDirection();
// Use the width as a multiplier in case the slider values are <= 1