From: aclement Date: Mon, 12 Jan 2009 21:35:16 +0000 (+0000) Subject: 260751: fix X-Git-Tag: pre268419~227 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d9bd46d462bc3742bfcc72d7baf493c49d96cb4b;p=aspectj.git 260751: fix --- 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; }