parent
7108f6d07e
commit
116a038de9
|
@ -35,7 +35,7 @@ func ParseSnapshotData(snapshotData string) (*VBoxSnapshot, error) {
|
||||||
node.IsCurrent = true
|
node.IsCurrent = true
|
||||||
} else {
|
} else {
|
||||||
matches := SnapshotNamePartsRe.FindStringSubmatch(txt)
|
matches := SnapshotNamePartsRe.FindStringSubmatch(txt)
|
||||||
if matches[1] == "Name" {
|
if len(matches) >= 2 && matches[1] == "Name" {
|
||||||
if nil == rootNode {
|
if nil == rootNode {
|
||||||
node = new(VBoxSnapshot)
|
node = new(VBoxSnapshot)
|
||||||
rootNode = node
|
rootNode = node
|
||||||
|
|
Loading…
Reference in New Issue