commit | e287d61e31e682c52222423c5a1750aa1b7ebc55 | [log] [tgz] |
---|---|---|
author | Dmitri Plotnikov <dplotnikov@google.com> | Thu Mar 04 20:47:31 2010 -0800 |
committer | Dmitri Plotnikov <dplotnikov@google.com> | Thu Mar 04 20:47:31 2010 -0800 |
tree | 21d3de891b4d8bb9bcd7eec8393cd17c55b9f0ab | |
parent | c419689c634ac23cb378f9155ccdaaf4498287b2 [diff] |
Fixing an NPE in QuickContact Bug: 2473868 Change-Id: I2106333299321585a8f41fac793df58ea39ff899
diff --git a/src/com/android/contacts/ui/QuickContactWindow.java b/src/com/android/contacts/ui/QuickContactWindow.java index 69a2801..0d1eb2c 100644 --- a/src/com/android/contacts/ui/QuickContactWindow.java +++ b/src/com/android/contacts/ui/QuickContactWindow.java
@@ -1528,7 +1528,7 @@ * window, which usually means we should dismiss. */ protected void detectEventOutside(MotionEvent event) { - if (event.getAction() == MotionEvent.ACTION_DOWN) { + if (event.getAction() == MotionEvent.ACTION_DOWN && mDecor != null) { // Only try detecting outside events on down-press mDecor.getHitRect(mRect); mRect.top = mRect.top + mShadowTouch;