aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJames Moger <james.moger@gmail.com>2012-01-27 15:53:00 -0500
committerJames Moger <james.moger@gmail.com>2012-01-27 15:53:00 -0500
commit25e92e1b20d58b523c8a1e2090241552bc4489cd (patch)
tree587c3caf8ffce7ba46e777063601d4dd926c638f /src
parent342840e8c3ce94aaf14dd71b3246058393096058 (diff)
downloadiciql-25e92e1b20d58b523c8a1e2090241552bc4489cd.tar.gz
iciql-25e92e1b20d58b523c8a1e2090241552bc4489cd.zip
Fixed index out of bounds exception in parsing a default string valuev0.7.10
Diffstat (limited to 'src')
-rw-r--r--src/com/iciql/Constants.java4
-rw-r--r--src/com/iciql/ModelUtils.java2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/com/iciql/Constants.java b/src/com/iciql/Constants.java
index 3653cde..2ce664a 100644
--- a/src/com/iciql/Constants.java
+++ b/src/com/iciql/Constants.java
@@ -25,11 +25,11 @@ public class Constants {
// The build script extracts this exact line so be careful editing it
// and only use A-Z a-z 0-9 .-_ in the string.
- public static final String VERSION = "0.7.9";
+ public static final String VERSION = "0.7.10";
// The build script extracts this exact line so be careful editing it
// and only use A-Z a-z 0-9 .-_ in the string.
- public static final String VERSION_DATE = "2012-01-24";
+ public static final String VERSION_DATE = "2012-01-27";
// The build script extracts this exact line so be careful editing it
// and only use A-Z a-z 0-9 .-_ in the string.
diff --git a/src/com/iciql/ModelUtils.java b/src/com/iciql/ModelUtils.java
index 72e9690..56e6440 100644
--- a/src/com/iciql/ModelUtils.java
+++ b/src/com/iciql/ModelUtils.java
@@ -269,7 +269,7 @@ class ModelUtils {
if (def.defaultValue.charAt(0) == '\''
&& def.defaultValue.charAt(def.defaultValue.length() - 1) == '\'') {
// strip leading and trailing single quotes
- return def.defaultValue.substring(1, def.defaultValue.length() - 2);
+ return def.defaultValue.substring(1, def.defaultValue.length() - 1).trim();
}
return def.defaultValue;
}