From ca72eb2a9754221686dff9e4322e71971e664c69 Mon Sep 17 00:00:00 2001 From: nebkat Date: Thu, 5 Apr 2012 14:12:05 +0200 Subject: AppsCustomizePagedView: Fix possible NPE Change-Id: I1876bf3d7bbbe78610a7d1b47ef2123fb78e21f6 --- src/com/cyanogenmod/trebuchet/AppsCustomizePagedView.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3