Skip to content

Commit

Permalink
Merge pull request #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 cdcd75a + 59d6a57 commit ea84006
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 ea84006

Please sign in to comment.