Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed a bug where the distance from an empty string causes an exception

  • Loading branch information...
commit 47cd758a4fc468327049923b90bab70fe8e11419 1 parent 1444c64
@dpp dpp authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 core/util/src/main/scala/net/liftweb/util/LD.scala
View
5 core/util/src/main/scala/net/liftweb/util/LD.scala
@@ -91,7 +91,10 @@ object LD {
new ListBuffer))
}
- matrix(y1, 0, (1 to x.length).toList).last
+ matrix(y1, 0, (1 to x.length).toList) match {
+ case Nil => 10000
+ case xs => xs.last
+ }
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.