File tree 2 files changed +3
-2
lines changed
modules/org.restlet/src/org/restlet/engine/io
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,8 @@ Changes log
7
7
- Bugs fixed
8
8
- In IE 10 and seq., request without body are sent with an "undefined" body. Issue #1252.
9
9
Reported by Etienne Griette.
10
-
10
+ - Fixed potential NPE when a queue returns null in PipeStream. Issue #1246.
11
+ Reported and contributed by Grégoire Juge.
11
12
- 2.3.8 (12/10/2016)
12
13
- Bugs fixed
13
14
- Fixed NullPointerException when requesting a Directory with a query string. Issue #1206.
Original file line number Diff line number Diff line change @@ -69,12 +69,12 @@ public int read() throws IOException {
69
69
70
70
final Integer value = queue .poll (QUEUE_TIMEOUT ,
71
71
TimeUnit .SECONDS );
72
- this .endReached = (value == -1 );
73
72
74
73
if (value == null ) {
75
74
throw new IOException (
76
75
"Timeout while reading from the queue-based input stream" );
77
76
} else {
77
+ this .endReached = (value == -1 );
78
78
return value .intValue ();
79
79
}
80
80
} catch (InterruptedException ie ) {
You can’t perform that action at this time.
0 commit comments