From d9bd46d462bc3742bfcc72d7baf493c49d96cb4b Mon Sep 17 00:00:00 2001 From: aclement Date: Mon, 12 Jan 2009 21:35:16 +0000 Subject: [PATCH] 260751: fix --- .../src/org/aspectj/ajdt/ajc/ConfigParser.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; } -- 2.39.5