]> source.dussan.org Git - aspectj.git/commitdiff
260751: fix
authoraclement <aclement>
Mon, 12 Jan 2009 21:35:16 +0000 (21:35 +0000)
committeraclement <aclement>
Mon, 12 Jan 2009 21:35:16 +0000 (21:35 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/ConfigParser.java

index 9831225d4fd9e4b2b27ddb29c022af51adef8a51..f6d33b14a610bb39681bab11fcdb7a12ea16e44d 100644 (file)
@@ -100,7 +100,11 @@ public class ConfigParser {
                s = stripSingleLineComment(s, "#");
                s = s.trim();
                if (s.startsWith("\"") && s.endsWith("\"")) {
-                       s = s.substring(1, s.length() - 1);
+                       if (s.length()==1) {
+                               return "";
+                       } else {
+                               s = s.substring(1, s.length() - 1);
+                       }
                }
                return s;
        }