Allow empty URL

git-svn-id: https://zxing.googlecode.com/svn/trunk@931 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen 2009-05-04 20:05:10 +00:00
parent a26e5fbc10
commit cdbfde6df0

View file

@ -152,7 +152,9 @@ public class ContactInfoGenerator implements GeneratorSource {
private String getUrlField() throws GeneratorException {
String input = url.getText();
Validators.validateUrl(input);
if (input != null && input.length() > 0) {
Validators.validateUrl(input);
}
return input;
}