OSDN Git Service

fix some aspects of [2258746] native crash in launcher2
authorMathias Agopian <mathias@google.com>
Fri, 13 Nov 2009 23:26:29 +0000 (15:26 -0800)
committerMathias Agopian <mathias@google.com>
Fri, 13 Nov 2009 23:26:29 +0000 (15:26 -0800)
commit963abad79ae64dae9bf4c32bfb110d9e6314c857
treef017c89f91c07d4bc06c8c74efbc03aa73463572
parent8b1b9f4e9ca3816777d7228bec2182e16f38a093
fix some aspects of [2258746] native crash in launcher2

Surface::validate() could sometimes dereference a null pointer before checking it wasn't null.
This will prevent the application to crash when given bad parameters or used incorrectly.
However, the bug above probably has another cause.
include/ui/Surface.h
libs/ui/Surface.cpp