Fix nil pointer exception in frontier building.

pull/84/head
Julius Volz 12 years ago committed by Matt T. Proud
parent 896e172463
commit bb9c5ed7aa

@ -44,7 +44,7 @@ func (f *diskFrontier) ContainsFingerprint(fingerprint model.Fingerprint) bool {
func newDiskFrontier(i iterator) (d *diskFrontier, err error) {
i.SeekToLast()
if i.Key() == nil {
if !i.Valid() || i.Key() == nil {
return
}
lastKey, err := extractSampleKey(i)

Loading…
Cancel
Save