Project: genius master
3976c3e4a09a35b6e6b93d9ec48703832dd2f649
Merge "Avoid .transform() NPEs"
Avoid .transform() NPEs
Guava’s Optional::transform doesn’t support null values returned by
the mapping function — it throws a NPE if that happens. java.util’s
Optional::map does support null values and returns an empty Optional.
Combined with the current YANG-based code’s ability to return null,
this means it’s better to use java.util’s method; this patch switches
all YANG-based Optional transforms to java.util.
Change-Id: I8b26820ce5627e9ee950baee6d99a315e9e3494e
Signed-off-by: Stephen Kitt <skitt@redhat.com>
-Subproject commit f764fe488dc1da0dc83dcbbb00fd8a381b5705da
+Subproject commit 3976c3e4a09a35b6e6b93d9ec48703832dd2f649