Skip to content

Commit

Permalink
a24: return key directly + fix NPE in context.getSystemService() on…
Browse files Browse the repository at this point in the history
… process death
  • Loading branch information
zhuinden committed Dec 26, 2016
1 parent 14005b5 commit 15e5af6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
Change Log
==========

Flowless Version 1.0-alpha1.24 *(????-??-??)*
Flowless Version 1.0-alpha1.24 *(2016-12-26)*
---------------------------------------------
* Fix: `context.getSystemService()` integration should throw IllegalStateException if Flow is not found after process death, instead of crashing with NPE
* Change: `InternalContextWrapper` should be able to return global key even if Flow is not initialized

Flowless Version 1.0-alpha1.23 *(2016-12-20)*
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ In order to use Flow(less), you need to add jitpack to your project root gradle:

and add the compile dependency to your module level gradle.

compile 'com.github.Zhuinden:flowless:1.0-alpha1.23'
compile 'com.github.Zhuinden:flowless:1.0-alpha1.24'


Then, install Flow into your Activity:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ private Flow findFlow() {
throw new IllegalStateException(FLOW_NOT_YET_INITIALIZED);
}
flow = internalLifecycleIntegration.flow;
if(flow == null) {
throw new IllegalStateException(FLOW_NOT_YET_INITIALIZED);
}
}
return flow;
}
Expand Down

0 comments on commit 15e5af6

Please sign in to comment.