* commit 'ffc2682a9784e03d7cc9943f4f408255f8468b96':
  Fix NPE
This commit is contained in:
Michael Jurka authored and Android Git Automerger committed 2012-11-16 18:27:26 -08:00
commit aa01c0882b
1 file changed
+4
+4
View File
@@ -1403,6 +1403,10 @@ public final class Launcher extends Activity
Runnable processIntent = new Runnable() {
public void run() {
if (mWorkspace == null) {
// Can be cases where mWorkspace is null, this prevents a NPE
return;
}
Folder openFolder = mWorkspace.getOpenFolder();
// In all these cases, only animate if we're already on home
mWorkspace.exitWidgetResizeMode();