Index: Source/core/html/canvas/CanvasRenderingContext2D.cpp |
diff --git a/Source/core/html/canvas/CanvasRenderingContext2D.cpp b/Source/core/html/canvas/CanvasRenderingContext2D.cpp |
index ef14b3f8911c4d39d749f93a67782f4f382cc767..307b2946078a608683ca101d0ac664b34f4e9458 100644 |
--- a/Source/core/html/canvas/CanvasRenderingContext2D.cpp |
+++ b/Source/core/html/canvas/CanvasRenderingContext2D.cpp |
@@ -2238,7 +2238,7 @@ bool CanvasRenderingContext2D::focusRingCallIsValid(const Path& path, Element* e |
return false; |
if (path.isEmpty()) |
return false; |
- if (!element->isDescendantOf(canvas())) |
+ if (!element || !element->isDescendantOf(canvas())) |
return false; |
return true; |