Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Make sure errorCode is not cut off
  • Loading branch information
RHenigan committed Feb 22, 2022
commit db04b82ece7af76d3c591c7461b6d7ed20e0ff71
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,7 @@ public static SecurityQueryPayload parseBinaryQueryHeader(byte[] binHeader) {

//Get the binaryData after the header (after 96 bits) and the jsonData size
if (binHeader.length - _jsonSize - SECURITY_QUERY_HEADER_SIZE > 0) {
byte[] _bulkData;
if (msg.getQueryType() == SecurityQueryType.NOTIFICATION && msg.getQueryID() == SecurityQueryID.SEND_INTERNAL_ERROR) {
_bulkData = new byte[binHeader.length - _jsonSize - SECURITY_QUERY_HEADER_SIZE - 1];
} else {
_bulkData = new byte[binHeader.length - _jsonSize - SECURITY_QUERY_HEADER_SIZE];
}
byte[] _bulkData = new byte[binHeader.length - _jsonSize - SECURITY_QUERY_HEADER_SIZE];
System.arraycopy(binHeader, SECURITY_QUERY_HEADER_SIZE + _jsonSize, _bulkData, 0, _bulkData.length);
msg.setBulkData(_bulkData);
}
Expand Down