aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJorge Ruesga <jorge@ruesga.com>2014-09-23 22:24:49 (GMT)
committerGerrit Code Review <gerrit@cyanogenmod.org>2014-09-23 22:24:49 (GMT)
commit22ef6f27c736b038a60a7a846082bb631dcca94d (patch)
treee7a8677eaa7bc5721ce4b0422cd78a29fc8062a1
parentb742e526dadb97decbca4b84e53a3ac31ad86135 (diff)
parent31cc87ef02eb114a73919a6f6dcd2fc59851fb34 (diff)
downloadandroid_packages_wallpapers_PhotoPhase-22ef6f27c736b038a60a7a846082bb631dcca94d.zip
android_packages_wallpapers_PhotoPhase-22ef6f27c736b038a60a7a846082bb631dcca94d.tar.gz
android_packages_wallpapers_PhotoPhase-22ef6f27c736b038a60a7a846082bb631dcca94d.tar.bz2
Merge "photophase: prevent npe on low memory" into cm-11.0
-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);
+ }
}
/**