Added kludge to stop exception propagation

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2468 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Tom Copeland
2003-12-16 16:07:49 +00:00
parent 80993541f3
commit 74925af1e6

View File

@ -40,6 +40,7 @@ public class RuleProperties {
}
public String getValue(String name) {
name = (name == null) ? "" : name.trim();
if (name.length() > 0) {
@ -56,18 +57,22 @@ public class RuleProperties {
}
public String getValueType(String name) {
name = (name == null) ? "" : name.trim();
try {
name = (name == null) ? "" : name.trim();
if (name.length() > 0) {
String property = m_properties.getProperty(name);
if (name.length() > 0) {
String property = m_properties.getProperty(name);
if (property != null) {
int index = property.indexOf(SEPARATOR) + SEPARATOR.length();
if (property != null) {
int index = property.indexOf(SEPARATOR) + SEPARATOR.length();
if (index > 0) {
return property.substring(index);
if (index > 0) {
return property.substring(index);
}
}
}
} catch (Exception e) {
e.printStackTrace();
}
return "";