summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--android/src/org/rockbox/RockboxActivity.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/android/src/org/rockbox/RockboxActivity.java b/android/src/org/rockbox/RockboxActivity.java
index 06ceb9c35f..47ea6c0ca4 100644
--- a/android/src/org/rockbox/RockboxActivity.java
+++ b/android/src/org/rockbox/RockboxActivity.java
@@ -131,21 +131,24 @@ public class RockboxActivity extends Activity
131 protected void onPause() 131 protected void onPause()
132 { 132 {
133 super.onPause(); 133 super.onPause();
134 rbservice.set_activity(null); 134 if (rbservice != null)
135 rbservice.set_activity(null);
135 } 136 }
136 137
137 @Override 138 @Override
138 protected void onStop() 139 protected void onStop()
139 { 140 {
140 super.onStop(); 141 super.onStop();
141 rbservice.set_activity(null); 142 if (rbservice != null)
143 rbservice.set_activity(null);
142 } 144 }
143 145
144 @Override 146 @Override
145 protected void onDestroy() 147 protected void onDestroy()
146 { 148 {
147 super.onDestroy(); 149 super.onDestroy();
148 rbservice.set_activity(null); 150 if (rbservice != null)
151 rbservice.set_activity(null);
149 } 152 }
150 153
151 private void LOG(CharSequence text) 154 private void LOG(CharSequence text)