[jbosstools-commits] JBoss Tools SVN: r43604 - trunk/common/plugins/org.jboss.tools.common.core/src/org/jboss/tools/common/util.
jbosstools-commits at lists.jboss.org
jbosstools-commits at lists.jboss.org
Tue Sep 11 13:34:20 EDT 2012
Author: vrubezhny
Date: 2012-09-11 13:34:20 -0400 (Tue, 11 Sep 2012)
New Revision: 43604
Modified:
trunk/common/plugins/org.jboss.tools.common.core/src/org/jboss/tools/common/util/StringUtil.java
Log:
JBIDE-12589
o.j.t.jsf.ui.test.* JUnit tests fail
Issue is fixed
Modified: trunk/common/plugins/org.jboss.tools.common.core/src/org/jboss/tools/common/util/StringUtil.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.core/src/org/jboss/tools/common/util/StringUtil.java 2012-09-11 16:57:30 UTC (rev 43603)
+++ trunk/common/plugins/org.jboss.tools.common.core/src/org/jboss/tools/common/util/StringUtil.java 2012-09-11 17:34:20 UTC (rev 43604)
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2011 Red Hat, Inc.
+ * Copyright (c) 2011 - 2012 Red Hat, Inc.
* Distributed under license by Red Hat, Inc. All rights reserved.
* This program is made available under the terms of the
* Eclipse Public License v1.0 which accompanies this distribution,
@@ -29,7 +29,8 @@
* @return Non-quoted text value
*/
public static String trimQuotes(String result) {
-
+ if (result == null || result.length() == 0)
+ return result;
int start = 0, end = result.length();
char first = result.charAt(start);
char last = result.charAt(end - 1);
More information about the jbosstools-commits
mailing list