fixed nanogoat bug
[org.ibex.core.git] / src / org / ibex / util / NanoGoat.java
index ab0e361..d4f8a81 100644 (file)
@@ -53,6 +53,8 @@ public class NanoGoat {
         NanoGoat bcp = new NanoGoat();
         BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
         for(String s = br.readLine(); s != null; s = br.readLine()) {
+            s = s.trim();
+            if (s.length() == 0) continue;
             try {
                 if (s.endsWith(".class")) {
                     bcp.visitJavaClass(repo.loadClass(s.substring(0, s.length() - 6)));