mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-11-10 04:37:25 +01:00
Fix crash related to the "swipe between posts" options
There was a null pointer execution because it did not check for a null value.
This commit is contained in:
parent
fe565d2ef3
commit
6b09f0379c
@ -557,7 +557,7 @@ public class ViewPostDetailActivity extends BaseActivity implements SortTypeSele
|
||||
// TODO: Implement anonymous front page
|
||||
|
||||
default:
|
||||
String type = (subredditName.equals("all")) ? "All" : (subredditName.equals("local")) ? "Local" : "Subscribed";
|
||||
String type = (subredditName == null) ? "Subscribed" : (subredditName.equals("all")) ? "All" : "Local";
|
||||
call = api.getPosts(type, sortType.value, nextPage, 25, null, null, false, mAccessToken);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user