Guard against callbacks when no list view created

Bug: 21762925
Change-Id: If4bdaa6cf107c4b890a8ebeb56ba4ef222a340ad
This commit is contained in:
Jason Monk
2015-06-16 15:11:41 -04:00
parent 744f2adb56
commit 7c866c51cd

View File

@@ -148,7 +148,7 @@ public class WifiSettingsForSetupWizard extends WifiSettings {
}
protected void updateFooter(boolean isEmpty) {
if (isEmpty != mListLastEmpty) {
if (isEmpty != mListLastEmpty && hasListView()) {
final ListView list = getListView();
list.removeFooterView(mEmptyFooter);
list.removeFooterView(mAddOtherNetworkItem);