commit | 11e84323c27cd2b42847ffb861708faf009c8ff5 | [log] [tgz] |
---|---|---|
author | Charles Chan <rascov@gmail.com> | Mon Apr 23 10:24:21 2018 -0700 |
committer | Charles Chan <charles@opennetworking.org> | Mon Apr 23 19:22:43 2018 +0000 |
tree | 9acea3a252bc823fcfa5450a3879717a76497f73 | |
parent | ee7001eeab1725019447bd01229ae4233007e58b [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 a46c08e..39e1c12 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 RuntimeException("Unknown duidType: " + duidType.toString());