例外キャッチを追加
This commit is contained in:
parent
8dd1745c1f
commit
ae7af9d01a
|
@ -207,10 +207,13 @@ public class HomeFragment extends Fragment implements OnEventListener{
|
||||||
FrameLayout fl;
|
FrameLayout fl;
|
||||||
try {
|
try {
|
||||||
tv = requireView().findViewById(R.id.situation);
|
tv = requireView().findViewById(R.id.situation);
|
||||||
fl = getView().findViewById(R.id.situation_bg);
|
fl = requireView().findViewById(R.id.situation_bg);
|
||||||
} catch (NullPointerException e) {
|
} catch (NullPointerException e) {
|
||||||
Log.d("HomeFragment", "updateUiState: view is null");
|
Log.d("HomeFragment", "updateUiState: view is null");
|
||||||
return;
|
return;
|
||||||
|
} catch (Exception e) {
|
||||||
|
Log.d("HomeFragment", "updateUiState: unknown error");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
String get_on = "\n乗車状態";
|
String get_on = "\n乗車状態";
|
||||||
String get_off = "\n降車状態";
|
String get_off = "\n降車状態";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user