01org/ozone-wayland — pull request #226 by rakuco (2014-04-01 13:44:14+00:00)
Title: Cursor: Stop crashing when certain cursors are not found.

Not all cursor themes have all the types we have defined in
WaylandCursor::CursorType. When that happens, the corresponding entry in
cursors_ becomes NULL. We were then passing NULL to
wl_cursor_image_get_buffer() and crashing.

Fix it by first checking if we have a valid wl_cursor_image to pass to
wl_cursor_image_get_buffer().

TEST=Launch chrome or content_shell with a cursor theme that doesn't have
"top_left" or another commonly used name, such as the default Wayland
cursor theme.