mirror of
https://github.com/jetty/jetty.project.git
synced 2025-03-01 11:29:29 +00:00
Guarded against NPE.
This commit is contained in:
parent
9b6ba2477c
commit
fd335d6c3e
@ -115,6 +115,8 @@ public class BufferingFlowControlStrategy extends AbstractFlowControlStrategy
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
AtomicInteger streamLevel = streamLevels.get(stream);
|
AtomicInteger streamLevel = streamLevels.get(stream);
|
||||||
|
if (streamLevel != null)
|
||||||
|
{
|
||||||
level = streamLevel.addAndGet(length);
|
level = streamLevel.addAndGet(length);
|
||||||
maxLevel = (int)(getInitialStreamRecvWindow() * bufferRatio);
|
maxLevel = (int)(getInitialStreamRecvWindow() * bufferRatio);
|
||||||
if (level > maxLevel)
|
if (level > maxLevel)
|
||||||
@ -136,6 +138,7 @@ public class BufferingFlowControlStrategy extends AbstractFlowControlStrategy
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (windowFrame != null)
|
if (windowFrame != null)
|
||||||
session.frames(stream, Callback.NOOP, windowFrame, windowFrames);
|
session.frames(stream, Callback.NOOP, windowFrame, windowFrames);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user