Fix NPE in EntityOwnerSelectionStrategyConfigReader 05/28905/1
authorTom Pantelis <tpanteli@brocade.com>
Wed, 28 Oct 2015 19:37:32 +0000 (15:37 -0400)
committerTom Pantelis <tpanteli@brocade.com>
Wed, 28 Oct 2015 19:37:32 +0000 (15:37 -0400)
commitb3cf2ee574aa20886e0e2fc3273ceb77d3893123
tree1e72904a2539af1ccbdf4490ff00bc770f4bdbc7
parent9c23a45718dc22751e52ec4fd416f92ce593cb37
Fix NPE in EntityOwnerSelectionStrategyConfigReader

Configuration#getProperties can return null if the config doesn't exist
- need to check for that. Also added more checks and unit tests.

Change-Id: If468fb8c3df7ecba664bb00a8f01bdfec7b4ceeb
Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/entityownership/selectionstrategy/EntityOwnerSelectionStrategyConfigReader.java
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/entityownership/selectionstrategy/EntityOwnerSelectionStrategyConfigReaderTest.java