summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authornebkat <nebkat@teamhacksung.org>2012-04-05 14:12:05 +0200
committernebkat <nebkat@teamhacksung.org>2012-04-05 14:12:05 +0200
commitca72eb2a9754221686dff9e4322e71971e664c69 (patch)
treea4f340e91bacc3c2aac0c320c551c850c376a882 /src
parentf5eb5d2c504270f0f777c984530621e09dbb9cd8 (diff)
downloadandroid_packages_apps_Trebuchet-ca72eb2a9754221686dff9e4322e71971e664c69.tar.gz
android_packages_apps_Trebuchet-ca72eb2a9754221686dff9e4322e71971e664c69.tar.bz2
android_packages_apps_Trebuchet-ca72eb2a9754221686dff9e4322e71971e664c69.zip
AppsCustomizePagedView: Fix possible NPE
Change-Id: I1876bf3d7bbbe78610a7d1b47ef2123fb78e21f6
Diffstat (limited to 'src')
-rw-r--r--src/com/cyanogenmod/trebuchet/AppsCustomizePagedView.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/cyanogenmod/trebuchet/AppsCustomizePagedView.java b/src/com/cyanogenmod/trebuchet/AppsCustomizePagedView.java
index f3ca9e794..eb1642c2f 100644
--- a/src/com/cyanogenmod/trebuchet/AppsCustomizePagedView.java
+++ b/src/com/cyanogenmod/trebuchet/AppsCustomizePagedView.java
@@ -493,7 +493,9 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
}
public void showAllAppsCling() {
- Cling allAppsCling = (Cling) getTabHost().findViewById(R.id.all_apps_cling);
+ AppsCustomizeTabHost tabHost = getTabHost();
+ if (tabHost == null) return;
+ Cling allAppsCling = (Cling) tabHost.findViewById(R.id.all_apps_cling);
if (!mHasShownAllAppsCling && isDataReady() && testDataReady()) {
mHasShownAllAppsCling = true;
// Calculate the position for the cling punch through