Merge change I95319bde into eclair

* changes:
  Fixes #2175599. Prevents an NPE when AttachInfo is null.
This commit is contained in:
Android (Google) Code Review
2009-10-08 13:53:54 -04:00

View File

@ -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