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

Fix possible NPE.

Change-Id: Ifca1e64aacf0f4b4e83f70c9bcbe6bb79f5415fd
üst 16c53fb6
......@@ -151,6 +151,10 @@ public class SlideShowActivity extends SherlockFragmentActivity implements Servi
}
private void startSlideShow() {
if (!isServiceBound()) {
return;
}
if (mCommunicationService.getSlideShow().isRunning()) {
setUpSlideShowInformation();
return;
......
......@@ -459,6 +459,10 @@ public class ComputersFragment extends SherlockListFragment implements ServiceCo
}
private void stopComputersSearch() {
if (!isServiceBound()) {
return;
}
mCommunicationService.stopServersSearch();
}
......
......@@ -119,6 +119,10 @@ public class SlidesPagerFragment extends SherlockFragment implements ServiceConn
}
private void setUpCurrentSlide() {
if (!isServiceBound()) {
return;
}
SlideShow aSlideShow = mCommunicationService.getSlideShow();
getSlidesPager().setCurrentItem(aSlideShow.getCurrentSlideIndex());
......
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