Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(848)

Issue 8118014: Check for null context (Closed)

Created:
9 years, 2 months ago by caryclark
Modified:
9 years, 2 months ago
CC:
chromium-reviews, abarth-chromium, Mark Mentovai
Visibility:
Public.

Description

Check for null context https://bugs.webkit.org/show_bug.cgi?id=69149 describes a situation where running webkit tests sporadically crashes in the Debug build. The context returned by CGContextForData is NULL, so an early return prevents the BitmapPlatformDevice constructor from firing an assert in this case. The callers already anticipate a NULL result, and will propogate the error correctly. BUG=WK69149 TEST=run webkit tests in a Debug build repeatedly Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=104374

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -2 lines) Patch
M skia/ext/bitmap_platform_device_mac.cc View 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
epoger
lgtm
9 years, 2 months ago (2011-10-04 18:09:02 UTC) #1
Stephen White
lgtm
9 years, 2 months ago (2011-10-06 20:18:41 UTC) #2
commit-bot: I haz the power
CQ is trying the patch. Follow status at https://chromium-status.appspot.com/cq/caryclark@google.com/8118014/1
9 years, 2 months ago (2011-10-06 20:22:24 UTC) #3
commit-bot: I haz the power
9 years, 2 months ago (2011-10-06 22:09:28 UTC) #4
Change committed as 104374

Powered by Google App Engine
This is Rietveld 408576698