summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/android/noisefield/NoiseFieldWallpaper.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/noisefield/NoiseFieldWallpaper.java b/src/com/android/noisefield/NoiseFieldWallpaper.java
index 08a6769..3b457ef 100644
--- a/src/com/android/noisefield/NoiseFieldWallpaper.java
+++ b/src/com/android/noisefield/NoiseFieldWallpaper.java
@@ -95,7 +95,9 @@ public class NoiseFieldWallpaper extends WallpaperService {
@Override
public void onTouchEvent(MotionEvent ev) {
super.onTouchEvent(ev);
- mWallpaperRS.onTouchEvent(ev);
+ if (mWallpaperRS != null) {
+ mWallpaperRS.onTouchEvent(ev);
+ }
}
@Override