Fakultas Ilmu Komputer UI

Commit 9fdefeba authored by Yoga Pratama's avatar Yoga Pratama
Browse files

[CHORES] Handle when result is null

parent 44991b58
Pipeline #77464 passed with stages
in 14 minutes and 9 seconds
......@@ -32,7 +32,8 @@ class _KegiatanTerdekatButtonState extends State<KegiatanTerdekatButton> {
'name',
],
);
return details.result.name;
final result = details.result;
return result == null ? 'INVALID' : result.name;
}
void _navigateToDetailPostKegiatanPage(BuildContext context) async {
......
Supports Markdown
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