am e8825ce3: am 1fd10ea2: Merge "Throw illegal argument exception in BinaryDictionary::editDistance" into jb-mr1-dev

* commit 'e8825ce3e7392ea9eb385dc24b2e51bc961cd759':
  Throw illegal argument exception in BinaryDictionary::editDistance
main
Satoshi Kataoka 2012-10-03 01:19:43 -07:00 committed by Android Git Automerger
commit 967173711f
1 changed files with 3 additions and 0 deletions

View File

@ -187,6 +187,9 @@ public final class BinaryDictionary extends Dictionary {
} }
public static int editDistance(String before, String after) { public static int editDistance(String before, String after) {
if (before == null || after == null) {
throw new IllegalArgumentException();
}
return editDistanceNative(before.toCharArray(), after.toCharArray()); return editDistanceNative(before.toCharArray(), after.toCharArray());
} }