| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 52bc3be commit f0a73ec
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -107,7 +107,9 @@ public void onNext(Boolean aBoolean) { | |||
| 107 | 107 | @Override | |
| 108 | 108 | public void onDestroy() { | |
| 109 | 109 | super.onDestroy(); | |
| 110 | - _subscription.unsubscribe(); | ||
| 110 | + if (_subscription != null) { | ||
| 111 | + _subscription.unsubscribe(); | ||
| 112 | + } | ||
| 111 | 113 | } | |
| 112 | 114 | ||
| 113 | 115 | private void _log(String logMsg) { | |
@@ -142,7 +144,7 @@ private void _doSomeLongOperation_thatBlocksCurrentThread() { | |||
| 142 | 144 | try { | |
| 143 | 145 | Thread.sleep(3000); | |
| 144 | 146 | } catch (InterruptedException e) { | |
| 145 | - e.printStackTrace(); | ||
| 147 | + Timber.d("Operation was interrupted"); | ||
| 146 | 148 | } | |
| 147 | 149 | } | |
| 148 | 150 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments