Fix to convert BigInteger to 64 bit data when MSB is 1. 47/4047/1
authorDeepthi V V <deepthi.v.v@ericsson.com>
Tue, 7 Jan 2014 11:29:56 +0000 (16:59 +0530)
committerDeepthi V V <deepthi.v.v@ericsson.com>
Tue, 7 Jan 2014 11:29:56 +0000 (16:59 +0530)
commit3c84db70fb4b37c9da633f2dc394d184a2dda0e2
tree85138b9b407b1efa0f3c6cd2873d5915fa6de2e5
parentcd483df16cb45f5d8ef18fc62937367c2780f56b
Fix to convert BigInteger to 64 bit data when MSB is 1.
When MSB is 1, BigInteger toByteArray resulted in 9 element byte array, which lead to ArrayIndexOutOfBoundsException.

Signed-off-by: Deepthi V V <deepthi.v.v@ericsson.com>
openflowplugin/src/main/java/org/opendaylight/openflowplugin/openflow/md/util/ByteUtil.java