mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
Allow empty URL
git-svn-id: https://zxing.googlecode.com/svn/trunk@931 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
a26e5fbc10
commit
cdbfde6df0
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue