Skip to content

Commit

Permalink
Remove requireNotNull from argument check (#2940)
Browse files Browse the repository at this point in the history
  • Loading branch information
anandwana001 authored Dec 17, 2024
1 parent c60a952 commit 20e1fc0
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ class OfflineAreaViewerFragment @Inject constructor() : AbstractMapContainerFrag
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)

// TODO(#2649) requireNotNull will throw error, it should be handle smoothly
val args = OfflineAreaViewerFragmentArgs.fromBundle(requireNotNull(arguments))
val args = OfflineAreaViewerFragmentArgs.fromBundle(requireArguments())
viewModel = getViewModel(OfflineAreaViewerViewModel::class.java)
viewModel.initialize(args.offlineAreaId)
}
Expand Down

0 comments on commit 20e1fc0

Please sign in to comment.