Do not issue immediate build when looking up grouping 90/82090/1
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 15 May 2019 11:52:34 +0000 (13:52 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 15 May 2019 13:10:59 +0000 (15:10 +0200)
commitcffd468d222ae29d53f5467cf702951146735693
treea825708b4327afe14e58a3af5a4ac8055fc6a8e5
parentb76907b80ef6baa25e260721f22003aa37469bfb
Do not issue immediate build when looking up grouping

If we fail to find a grouping, we will end up with a NPE which
does not provide any information. Move the .build() call so that
the proper ISE kicks in.

JIRA: MDSAL-448
Change-Id: I57d6a74074b49def9bbc814732cfc48cd5265072
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit e802061e56eea9779e13eede5f949aa96666ea28)
binding/mdsal-binding-generator-impl/src/main/java/org/opendaylight/mdsal/binding/generator/impl/AbstractTypeGenerator.java