Avoid catch (NullPointerException e), do explicit if == null 75/40975/3
authorMichael Vorburger <vorburger@redhat.com>
Tue, 28 Jun 2016 23:45:26 +0000 (01:45 +0200)
committerRobert Varga <nite@hq.sk>
Wed, 29 Jun 2016 08:44:34 +0000 (08:44 +0000)
commit9285869ac3b372747a4e36c2783af2da59651254
treea0f009c7d39554743366e6a642fb7b17d9a5baae
parent9bc8fd1a65b8667ea70939be730f909e789147fa
Avoid catch (NullPointerException e), do explicit if == null

This will be required to migrate this code upstream, see
https://github.com/sevntu-checkstyle/sevntu.checkstyle/issues/457, so
might as well already do this better here, for now.

Change-Id: Ic5e90867353b5239a0d6a768e889b75190d33305
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
common/checkstyle-logging/src/main/java/org/opendaylight/yangtools/checkstyle/CheckLoggingUtil.java
common/checkstyle-logging/src/main/java/org/opendaylight/yangtools/checkstyle/LoggerFactoryClassParameterCheck.java