Fix NPE in SouthboundUtils 23/86823/2
authorChandra Shekar S <chandra.shekar.s@ericsson.com>
Thu, 9 Jan 2020 10:30:23 +0000 (16:00 +0530)
committerChetan Arakere Gowdru <chetan.arakere@altencalsoftlabs.com>
Mon, 13 Jan 2020 06:32:38 +0000 (06:32 +0000)
commit58edbf016ccd12678c77cb239b41b1350d331412
treea66160c9bf87e3e5551ab8d3d7a742674ccab096
parent3b7d1d0c377993b65e0209fad248d5bce331545b
Fix NPE in SouthboundUtils

JIRA: OVSDB-492

Add the null check to avoid the SouthboundUtils.compareDbVersionToMinVersion()
throwing the NPE.
By any chance if the method is getting triggered with one of the parameter as null,
throws the NPE.

Signed-off-by: Chandra Shekar S <chandra.shekar.s@ericsson.com>
Change-Id: Ibd29fe283fec7376baec56c0fbbb35529e157dbb
utils/southbound-utils/src/main/java/org/opendaylight/ovsdb/utils/southbound/utils/SouthboundUtils.java