Fix illegal check in CreateTransactionReply 40/75440/1
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 23 Aug 2018 14:02:40 +0000 (16:02 +0200)
committerRobert Varga <nite@hq.sk>
Thu, 23 Aug 2018 21:13:08 +0000 (21:13 +0000)
commit4bd71be139de7f90cb01d9ed256634a2283fe04c
treed433c8bb12aaeb1f73c5125b430152ca5fa34212
parent7b7c62e39815d7f6670b1f43d7c3773ce95886cc
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