We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d5754db + 68c948e commit 6fa2da4Copy full SHA for 6fa2da4
AndroidAsync/src/com/koushikdutta/async/BufferedDataEmitter.java
@@ -32,7 +32,7 @@ public void onDataAvailable() {
32
if (mDataCallback != null && !mPaused && mBuffers.remaining() > 0)
33
mDataCallback.onDataAvailable(this, mBuffers);
34
35
- if (mEnded && mBuffers.remaining() == 0)
+ if (mEnded && mBuffers.remaining() == 0 && mEndCallback != null)
36
mEndCallback.onCompleted(mEndException);
37
}
38
0 commit comments