Skip to content
This repository has been archived by the owner on Aug 9, 2020. It is now read-only.

Commit

Permalink
added check null fragment on RxActivityResult
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor committed May 6, 2016
1 parent be3379a commit acda3c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ allprojects {
And add next dependencies in the build.gradle of the module:
```gradle
dependencies {
compile "com.github.VictorAlbertos:RxActivityResult:0.3.1"
compile "com.github.VictorAlbertos:RxActivityResult:0.3.2"
compile "io.reactivex:rxjava:1.1.0"
}
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ private OnResult onResultFragment() {
for (Fragment fragment : fragments) {
if(fragment != null && fragment.isVisible() && fragment.getClass() == clazz) {
return fragment;
} else if (fragment.getChildFragmentManager() != null) {
} else if (fragment != null && fragment.getChildFragmentManager() != null) {
List<Fragment> childFragments = fragment.getChildFragmentManager().getFragments();
return getTargetFragment(childFragments);
}
Expand Down

0 comments on commit acda3c3

Please sign in to comment.