Java null handle bugfix
A helper method in Request.java could cause a crash if the request array that was passed contained nulls. Signed-off-by: Nathaniel Graham <ngraham@lanl.gov>
Этот коммит содержится в:
родитель
624a4a0f82
Коммит
8f4c16da27
@ -471,8 +471,12 @@ public class Request implements Freeable
|
||||
{
|
||||
long[] h = new long[r.length];
|
||||
|
||||
for(int i = 0; i < r.length; i++)
|
||||
h[i] = r[i].handle;
|
||||
for(int i = 0; i < r.length; i++) {
|
||||
if(r[i] != null)
|
||||
h[i] = r[i].handle;
|
||||
else
|
||||
h[i] = 0;
|
||||
}
|
||||
|
||||
return h;
|
||||
}
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user