Merge "NPE fix"

This commit is contained in:
Michael Jurka 2011-02-10 14:08:57 -08:00 committed by Android (Google) Code Review
commit 8df4f319fe
1 changed files with 3 additions and 1 deletions

View File

@ -2007,7 +2007,9 @@ public final class Launcher extends Activity
* Re-listen when widgets are reset.
*/
private void onAppWidgetReset() {
mAppWidgetHost.startListening();
if (mAppWidgetHost != null) {
mAppWidgetHost.startListening();
}
}
/**