aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJorge Ruesga <jorge@ruesga.com>2014-09-23 22:21:19 (GMT)
committerJorge Ruesga <jorge@ruesga.com>2014-09-23 22:21:19 (GMT)
commit31cc87ef02eb114a73919a6f6dcd2fc59851fb34 (patch)
treeb1393d4bd4aa75f8b83aaecde427ca67eebe6984
parent9cac29da38337785e97efda5fbce7e70754b3c44 (diff)
downloadandroid_packages_wallpapers_PhotoPhase-31cc87ef02eb114a73919a6f6dcd2fc59851fb34.zip
android_packages_wallpapers_PhotoPhase-31cc87ef02eb114a73919a6f6dcd2fc59851fb34.tar.gz
android_packages_wallpapers_PhotoPhase-31cc87ef02eb114a73919a6f6dcd2fc59851fb34.tar.bz2
photophase: prevent npe on low memory
Change-Id: I8d14f08219fd95db0bc068b79ba97f5461c9ac95 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
-rw-r--r--src/org/cyanogenmod/wallpapers/photophase/PhotoPhaseRenderer.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/org/cyanogenmod/wallpapers/photophase/PhotoPhaseRenderer.java b/src/org/cyanogenmod/wallpapers/photophase/PhotoPhaseRenderer.java
index bbb71d1..bb9ed29 100644
--- a/src/org/cyanogenmod/wallpapers/photophase/PhotoPhaseRenderer.java
+++ b/src/org/cyanogenmod/wallpapers/photophase/PhotoPhaseRenderer.java
@@ -283,7 +283,9 @@ public class PhotoPhaseRenderer implements GLSurfaceView.Renderer {
* Method called when system runs under low memory
*/
public void onLowMemory() {
- mTextureManager.emptyTextureQueue(false);
+ if (mTextureManager != null) {
+ mTextureManager.emptyTextureQueue(false);
+ }
}
/**