Kaydet (Commit) 10ca4e0b authored tarafından Artur Dryomov's avatar Artur Dryomov

Fix possible NPE.

Well, try to fix them.

Change-Id: I8f774d35a304367bbdd1778628a1224031355ed4
üst 57e171b3
...@@ -167,6 +167,10 @@ public class ComputersFragment extends SherlockListFragment implements ServiceCo ...@@ -167,6 +167,10 @@ public class ComputersFragment extends SherlockListFragment implements ServiceCo
} }
private void loadComputers() { private void loadComputers() {
if (!isVisible()) {
return;
}
if (getComputers().isEmpty()) { if (getComputers().isEmpty()) {
hideComputersList(); hideComputersList();
setUpProgressMessage(); setUpProgressMessage();
...@@ -225,6 +229,10 @@ public class ComputersFragment extends SherlockListFragment implements ServiceCo ...@@ -225,6 +229,10 @@ public class ComputersFragment extends SherlockListFragment implements ServiceCo
@Override @Override
public void run() { public void run() {
if (!isVisible()) {
return;
}
if (!isShowingProgressMessageRequired()) { if (!isShowingProgressMessageRequired()) {
return; return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment