fix the bug in plugin entity factory

This commit is contained in:
fanfuxiaoran 2014-05-06 16:11:15 +08:00
parent a78eb14c05
commit ac96d36e8d
1 changed files with 3 additions and 1 deletions

View File

@ -22,6 +22,7 @@ import org.bench4q.master.domain.entity.plugin.PluginParamInfo;
import org.bench4q.master.domain.entity.plugin.PluginUI;
import org.bench4q.master.domain.entity.plugin.RadioButtonType;
import org.bench4q.master.domain.entity.plugin.TableType;
import org.bench4q.master.exception.Bench4QRunTimeException;
import org.bench4q.master.exception.ExceptionLog;
import org.dom4j.Attribute;
import org.dom4j.Document;
@ -172,8 +173,9 @@ class ParamTypeFactory {
return createComboType(element);
case "file":
return createFileType(element);
default:
throw new Bench4QRunTimeException("no such type:"+type);
}
return null;
}