Mercurial > hg > anteater
diff src/de/mpiwg/anteater/ml/SimilarityHelper.java @ 4:dcc35f89dce3
include linneaus findings
author | jdamerow |
---|---|
date | Thu, 25 Oct 2012 15:25:08 -0700 |
parents | 036535fcd179 |
children |
line wrap: on
line diff
--- a/src/de/mpiwg/anteater/ml/SimilarityHelper.java Mon Oct 22 14:21:14 2012 -0700 +++ b/src/de/mpiwg/anteater/ml/SimilarityHelper.java Thu Oct 25 15:25:08 2012 -0700 @@ -13,6 +13,9 @@ public static String getBiggestSubstring(String s1, String s2) { String sub = s1; int j = s1.length(); + + if (s1 == null || s2 == null) + return ""; String subString = ""; String comparingString = s2;