Hi, Maybe you can just skip the onDraw in that case. hopefully the
next one will have a valid Canvas.

Just trowing an idea ;)

On 27 mayo, 11:15, Erik <[email protected]> wrote:
> I have two bug reports now in my publisher console, and the both are
> Null Pointer Exceptions from onDraw, and result from a null canvas
> object being passed into the method.   I've searched and not found any
> information on why this may be happening.  Anyone have ideas? Or any
> ideas on how to gracefully handle a null canvas being passed in?
> Wondering if I should return from the method or attempt to exit the
> app gracefully?
>
> Both errors were on the droid platform.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to