Bug:1253 - Fix NPE in config pusher 03/8403/1
authorTomas Olvecky <tolvecky@cisco.com>
Fri, 27 Jun 2014 09:38:37 +0000 (11:38 +0200)
committerTomas Olvecky <tolvecky@cisco.com>
Fri, 27 Jun 2014 09:38:37 +0000 (11:38 +0200)
commitfdacbae34f18c8fa74b68f82b9b4e24e6343c5b3
treee36f567c971c428d6c1dbc0c3f4177a0cb93b296
parentacbb38a7b4b935e278a38f55c50f3ac169c65681
Bug:1253 - Fix NPE in config pusher

Add better error message when ConfigSnapshotHolder contract is voilated.
Fix
org.opendaylight.controller.config.persist.storage.file.xml.model.ConfigSnapshot
to return empty set instead of null in getCapabilities()

Change-Id: I9783cccbe53ae69e322e1d5660ad1f3b52b007fa
Signed-off-by: Tomas Olvecky <tolvecky@cisco.com>
opendaylight/config/config-persister-api/src/main/java/org/opendaylight/controller/config/persist/api/ConfigSnapshotHolder.java
opendaylight/config/config-persister-file-xml-adapter/src/main/java/org/opendaylight/controller/config/persist/storage/file/xml/model/ConfigSnapshot.java
opendaylight/netconf/config-persister-impl/src/main/java/org/opendaylight/controller/netconf/persist/impl/ConfigPusher.java

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.