From c478e965e4bba1f36437c907b75acf118de3a549 Mon Sep 17 00:00:00 2001 From: konsoletyper Date: Tue, 9 Sep 2014 19:37:42 +0400 Subject: [PATCH] Trying to fix bug that occurs during maven build on Max OS: https://github.com/konsoletyper/teavm/issues/12 --- .../org/teavm/classlib/impl/report/JCLComparisonBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teavm-classlib/src/main/java/org/teavm/classlib/impl/report/JCLComparisonBuilder.java b/teavm-classlib/src/main/java/org/teavm/classlib/impl/report/JCLComparisonBuilder.java index 20232184b..38e78a6f0 100644 --- a/teavm-classlib/src/main/java/org/teavm/classlib/impl/report/JCLComparisonBuilder.java +++ b/teavm-classlib/src/main/java/org/teavm/classlib/impl/report/JCLComparisonBuilder.java @@ -166,7 +166,7 @@ public class JCLComparisonBuilder { return false; } int slashIndex = name.lastIndexOf('/'); - return packages.contains(name.substring(0, slashIndex)); + return slashIndex >= 0 && packages.contains(name.substring(0, slashIndex)); } private void compareClass(InputStream input) throws IOException {