Skip to content

Commit

Permalink
Merge pull request ReactiveX#302 from rgerasimen/patch-1
Browse files Browse the repository at this point in the history
Update Observable.isInternalImplementation, get rid of NullPointerExcept...
  • Loading branch information
benjchristensen committed Jul 5, 2013
2 parents aaaf4c9 + 871561c commit 29c52e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rxjava-core/src/main/java/rx/Observable.java
Original file line number Diff line number Diff line change
Expand Up @@ -3745,7 +3745,8 @@ private boolean isInternalImplementation(Object o) {
if (o instanceof AtomicObserver)
return true;
// we treat the following package as "internal" and don't wrap it
return o.getClass().getPackage().getName().startsWith("rx.operators");
Package p = o.getClass().getPackage(); // it can be null
return p != null && p.getName().startsWith("rx.operators");
}

public static class UnitTest {
Expand Down

0 comments on commit 29c52e7

Please sign in to comment.