Backport NPE fix in SnapshotManager 59/34359/2
authorTom Pantelis <tpanteli@brocade.com>
Tue, 9 Feb 2016 21:11:30 +0000 (16:11 -0500)
committerTom Pantelis <tpanteli@brocade.com>
Tue, 9 Feb 2016 21:19:42 +0000 (16:19 -0500)
commit07ab62b31f45779a887c418b0bf8111c4fc94dbf
tree4c5f91fc1b4a818761af21b73f7ffb65d8222cd6
parent967558bda496952706e78581b7a185e11e66806e
Backport NPE fix in SnapshotManager

Backported  https://git.opendaylight.org/gerrit/#/c/26132/ that fixed
an NPE in the SnapshotManager if there is no log entry from which to obtain
the last term/index for the snapshot. In this case it uses the last
applied term/index.

Change-Id: Iabd7f7467fa09a71576611e8261a3c985e62a97c
Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/SnapshotManager.java