commit | 79cc5e81cdf63acbdb84ace211d771f9d1c982e4 | [log] [tgz] |
---|---|---|
author | Charles Chan <rascov@gmail.com> | Mon Apr 23 10:24:21 2018 -0700 |
committer | Charles Chan <rascov@gmail.com> | Mon Apr 23 14:29:13 2018 -0700 |
tree | cdee0141bf5b695242eaa73876e0d23c703ac64f | |
parent | 33f4a91efa46a62e5d6254d18d51cbaef1bc8934 [diff] |
Fix NPE in Dhcp6Duid serializer Change-Id: I0d367b3642efc69a4e036aac29f967718d16d841
diff --git a/utils/misc/src/main/java/org/onlab/packet/dhcp/Dhcp6Duid.java b/utils/misc/src/main/java/org/onlab/packet/dhcp/Dhcp6Duid.java index 63be1f0..650b511 100644 --- a/utils/misc/src/main/java/org/onlab/packet/dhcp/Dhcp6Duid.java +++ b/utils/misc/src/main/java/org/onlab/packet/dhcp/Dhcp6Duid.java
@@ -157,7 +157,7 @@ case DUID_UUID: byteBuffer = ByteBuffer.allocate(DEFAULT_UUID_LEN + uuid.length); byteBuffer.putShort(duidType.value); - byteBuffer.put(linkLayerAddress); + byteBuffer.put(uuid); break; default: throw new IllegalArgumentException("Unknown duidType: " + duidType.toString());