Catch NPE in Bitmap.CreateBitmap and make sure the returned bitmap is not null