summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramStore.java
diff options
context:
space:
mode:
authorChet Haase <chet@google.com>2011-01-27 10:30:25 -0800
committerandroid-merger <android-build@android.com>2011-01-27 14:23:01 -0800
commit8084d33ace55e53afaf8a272214c3c4a31cc804f (patch)
tree75b77f0fd02f7d978f4ca38706f2386cd74e822c /rs/java/android/renderscript/ProgramStore.java
parent366fec6c0812723f384dffbeb59a6de6b87f800b (diff)
Fix NPE with display lists when view not attached
There was logic in ViewGroup that assumed that an accelerated view must always be able to get a display list for any child that it was drawing. One situation occurred, however, that caused a problem with this - a contacts activity was started and not yet attached, but was being asked to render into an accelerated canvas. We assumed that the child would have a display list and simply called getDisplayList(). But since that call returned null, we later deref'd the null object. The fix is to check whether a child can have a display list instead of assuming that it can just because the container view is accelerated. Change-Id: I7de62fd597ad50720c9585d621bec02e77c171df
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions