fixed null pointer issue on attempt to concatenate two null arrays
@@ -865,7 +865,8 @@ private static int getLength(int from, int to)
}
if (null == b)
{
- return a.clone();
+ // a might also be null
+ return clone(a);
}
byte[] r = new byte[a.length + b.length];
