fix: Get rid of the try-catch since it's considered bad practice in Java

This matches the treatment done at other places in the code, so it
should be fine.
This commit is contained in:
SinTan1729 2025-09-26 05:56:48 -05:00
parent a83495f353
commit 134a1605ad
No known key found for this signature in database
GPG key ID: 0538DD402EA50898

View file

@ -381,14 +381,9 @@ public class MainActivity extends BaseActivity {
private void resetView() {
resetViewModel();
try {
int id = Objects.requireNonNull(navController.getCurrentDestination()).getId();
navController.popBackStack(id, true);
navController.navigate(id);
} catch(NullPointerException e) {
e.printStackTrace();
quit();
}
int id = Objects.requireNonNull(navController.getCurrentDestination()).getId();
navController.popBackStack(id, true);
navController.navigate(id);
}
private void getOpenSubsonicExtensions() {