Fixing NPE in onFinishBindingItems (issue 10975740)

-> See bug for explanation. Seems like the circumstances leading to this
   NPE are understandable.

Change-Id: I89637a2da50be1081632e05cf79678c983a74d3a
This commit is contained in:
Adam Cohen
2013-09-29 12:57:34 -07:00
parent 8ad682ddda
commit 82398369f3
+1 -1
View File
@@ -915,7 +915,7 @@ public class Launcher extends Activity
}
protected void onFinishBindingItems() {
if (hasCustomContentToLeft() && mWorkspace.hasCustomContent()) {
if (mWorkspace != null && hasCustomContentToLeft() && mWorkspace.hasCustomContent()) {
addCustomContentToLeft();
}
}