Fix illegal check in CreateTransactionReply 39/75439/2
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 23 Aug 2018 14:02:40 +0000 (16:02 +0200)
committerRobert Varga <nite@hq.sk>
Fri, 31 Aug 2018 07:59:12 +0000 (07:59 +0000)
commitbcb27a77e4067b4d420d2cec182cc5ac83276d2d
tree89e615b0f0a57e81239259ca5616a5e1b9eba3f3
parent4d0e158970c7208d97ca5dbeeca7590e7ffa5482
Fix illegal check in CreateTransactionReply

The null check is wrong here, as instanceof will evaluate to a boolean,
which will always result in a non-null reference. Fix this by using
checkArgument().

Change-Id: I9c5c1795227cafafc4393ea86aa464287cd96df2
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 0fdb21f91e0e61e8ee911beb4cda9053537a0ccd)
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/CreateTransactionReply.java