BUG-972: correct Precondition 17/6817/1
authorRobert Varga <rovarga@cisco.com>
Thu, 8 May 2014 15:30:25 +0000 (17:30 +0200)
committerRobert Varga <rovarga@cisco.com>
Thu, 8 May 2014 15:32:07 +0000 (17:32 +0200)
commit41f3038f5d91f563ed46a95738111d70a724f9fb
treefd30b66d3f1aa949ddfbfa7b2e85b92c0d080bd3
parente13de280c24593cf8b1ddae56966d50e61f48638
BUG-972: correct Precondition

This is just a tiny adjustment of a Precondition, which should have been
triggered before this access. isPresent() returns true/false, which will
be autoboxed, so will always pass checkNotNull. use checkArgument()
instead, which will ensure that isPresent() == true.

Change-Id: I53fe6913c7a0f8073a193bc76c0792059c26fe2a
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/md-sal/sal-remoterpc-connector/implementation/src/main/java/org/opendaylight/controller/sal/connector/remoterpc/RemoteRpcProvider.java