provide missing module's name via IllegalArgumentException
authorMichael Vorburger <vorburger@redhat.com>
Tue, 26 Jun 2018 11:09:37 +0000 (13:09 +0200)
committerTom Pantelis <tompantelis@gmail.com>
Tue, 26 Jun 2018 13:17:14 +0000 (13:17 +0000)
commit711b2619047caf8d78756f7822f94dfc416e50c2
tree0559b1033389b49c9a6b125bf0b4038bb3eef185
parent1f2deb6fea2614fcc57c1d6ee2d8e7dd6855f287
provide missing module's name via IllegalArgumentException

by using orElseThrow() instead of get() on Optional<Module> in RpcUtil

to help understand MDSAL-354 problem

JIRA: MDSAL-354
Change-Id: If4d4f663b7cb63acea38acda73686176d27ff56f
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
src/main/java/org/opendaylight/controller/blueprint/ext/RpcUtil.java