diff --git a/services/java/com/android/server/wm/WindowManagerService.java b/services/java/com/android/server/wm/WindowManagerService.java index 8a4531c617afa..0ffb51061d3d5 100755 --- a/services/java/com/android/server/wm/WindowManagerService.java +++ b/services/java/com/android/server/wm/WindowManagerService.java @@ -4156,6 +4156,11 @@ public class WindowManagerService extends IWindowManager.Stub if (theme != 0) { AttributeCache.Entry ent = AttributeCache.instance().get(pkg, theme, com.android.internal.R.styleable.Window); + if (ent == null) { + // Whoops! App doesn't exist. Um. Okay. We'll just + // pretend like we didn't see that. + return; + } if (ent.array.getBoolean( com.android.internal.R.styleable.Window_windowIsTranslucent, false)) { return;