prevent ClassNotFound exception for emtpy class name

Signed-off-by: Joe Bowser <bowserj@apache.org>
This commit is contained in:
ignisvulpis 2013-12-03 23:46:06 +01:00 committed by Joe Bowser
parent ea1f041e11
commit e3430a916c

View File

@ -113,7 +113,7 @@ public class PluginEntry {
@SuppressWarnings("rawtypes")
private Class getClassByName(final String clazz) throws ClassNotFoundException {
Class c = null;
if (clazz != null) {
if ((clazz != null) && !("".equals(clazz))) {
c = Class.forName(clazz);
}
return c;