[PE] Fix a null ptr access in ImageBitmap
The ImageBitmap constructor that takes pixel data and a width and height does not check for success of the skia MakeRasterCopy call, that will return null for a host of reasons. Add the check. R=junov@chromium.org BUG=805972 Null check in ImageBitmap:ImageBitmap Change-Id: I4cd8464b21c3b14488ae8a948864b091f17d006a Reviewed-on: https://chromium-review.googlesource.com/887678Reviewed-by:Florin Malita <fmalita@chromium.org> Commit-Queue: Stephen Chenney <schenney@chromium.org> Cr-Commit-Position: refs/heads/master@{#532976}
Showing
Please register or sign in to comment