summaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core
diff options
context:
space:
mode:
authoraclement <aclement>2009-01-12 21:35:16 +0000
committeraclement <aclement>2009-01-12 21:35:16 +0000
commitd9bd46d462bc3742bfcc72d7baf493c49d96cb4b (patch)
treea49c64cfdfbed94bbd3fff328261d48c7cb817a2 /org.aspectj.ajdt.core
parente7bbceef4552aa06c1eb75928a6274e1718b50bf (diff)
downloadaspectj-d9bd46d462bc3742bfcc72d7baf493c49d96cb4b.tar.gz
aspectj-d9bd46d462bc3742bfcc72d7baf493c49d96cb4b.zip
260751: fix
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r--org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/ConfigParser.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/ConfigParser.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/ConfigParser.java
index 9831225d4..f6d33b14a 100644
--- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/ConfigParser.java
+++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/ConfigParser.java
@@ -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;
}