Skip to content

Commit

Permalink
Fixed issue thanhpd#13 (thanhpd#38)
Browse files Browse the repository at this point in the history
# Thanks for your contribution.

## PLEASE REMOVE
To support us in providing a nice (and fast) open-source experience:
1. Verify that the tests are passing
2. Check that the code is properly formatted (using AndroidStudio's
autoformatter)
3. Provide write access to the
[branch](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/allowing-changes-to-a-pull-request-branch-created-from-a-fork)
4. If the PR is not ready for review, please submit it as a
[draft](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/about-pull-requests#draft-pull-requests)
## PLEASE REMOVE

**Describe the pull request**
A clear and concise description of what the pull request changes/adds.

**Link to the the issue**
(If available): The link to the issue that this pull request solves.

**License agreement**
By opening this pull request, you are providing your contribution under
the _Apache License 2.0_ (see [LICENSE.md](LICENSE.md)).

**Note: new dependencies/libraries**
Please refrain from introducing new libraries without consulting the
team.
  • Loading branch information
gup-abhi authored Feb 16, 2024
2 parents 822c59b + 99e9cfc commit 0b8e259
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public Fragment createFragment(int position) {
return fc.newInstance();
}

throw new RuntimeException("There isn't Fragment associated with the position: " + position);
throw new IllegalArgumentException("There isn't Fragment associated with the position: " + position);
}

@Override
Expand Down

0 comments on commit 0b8e259

Please sign in to comment.