summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorArtur Dryomov <artur.dryomov@gmail.com>2013-09-06 19:12:31 +0300
committerArtur Dryomov <artur.dryomov@gmail.com>2013-09-07 11:55:53 +0300
commit508d32cd03ea60f46794a5b18ec48b005ef80ab5 (patch)
tree09b766786538c485d659e5f9434489d8d1c438d0 /android
parent2eb19ddb3f5f82efc4ffc882178ca3c6b7886e51 (diff)
Fix possible null pointer exception.
It is weird anyway. Change-Id: Ibde6e7dc7dc52c556ebc5e6e32ef939a316c5b1b
Diffstat (limited to 'android')
-rw-r--r--android/sdremote/src/org/libreoffice/impressremote/fragment/ComputersFragment.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/android/sdremote/src/org/libreoffice/impressremote/fragment/ComputersFragment.java b/android/sdremote/src/org/libreoffice/impressremote/fragment/ComputersFragment.java
index c8928470b61f..bc71865c81b0 100644
--- a/android/sdremote/src/org/libreoffice/impressremote/fragment/ComputersFragment.java
+++ b/android/sdremote/src/org/libreoffice/impressremote/fragment/ComputersFragment.java
@@ -152,6 +152,10 @@ public class ComputersFragment extends SherlockListFragment implements ServiceCo
@Override
public void run() {
+ if (!isAdded()) {
+ return;
+ }
+
if (isShowingProgressMessageRequired()) {
showProgressMessage();
}