diff options
author | Romain Guy <romainguy@android.com> | 2009-10-08 10:48:54 -0700 |
---|---|---|
committer | Romain Guy <romainguy@android.com> | 2009-10-08 10:48:54 -0700 |
commit | a62e4705d51e6f36ba1c02350813b6a12af49703 (patch) | |
tree | 6e4c50504b115064e1b9805fd332c6447760a3a0 /core | |
parent | bd324c9bd32a3c86634c1cc1ab8525f46a56b694 (diff) | |
download | frameworks_base-a62e4705d51e6f36ba1c02350813b6a12af49703.zip frameworks_base-a62e4705d51e6f36ba1c02350813b6a12af49703.tar.gz frameworks_base-a62e4705d51e6f36ba1c02350813b6a12af49703.tar.bz2 |
Fixes #2175599. Prevents an NPE when AttachInfo is null.
This bug was introduced by a change made to query the window's opacity.
Approved by mcleron.
Change-Id: I95319bde72b0faade095bbbbb317e84b9be8efa8
Diffstat (limited to 'core')
-rw-r--r-- | core/java/android/view/View.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java index 4c91b6b..eb3e523 100644 --- a/core/java/android/view/View.java +++ b/core/java/android/view/View.java @@ -6189,7 +6189,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility final int drawingCacheBackgroundColor = mDrawingCacheBackgroundColor; final boolean opaque = drawingCacheBackgroundColor != 0 || isOpaque(); - final boolean translucentWindow = attachInfo.mTranslucentWindow; + final boolean translucentWindow = attachInfo != null && attachInfo.mTranslucentWindow; if (width <= 0 || height <= 0 || // Projected bitmap size in bytes |