mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
Tiny bug fix, need to deal with no query params case correctly
git-svn-id: https://zxing.googlecode.com/svn/trunk@410 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
8319cf2097
commit
2cc9d7f630
|
@ -55,11 +55,15 @@ public final class EmailAddressParsedResult extends AbstractDoCoMoParsedResult {
|
||||||
emailAddress = emailAddress.substring(0, queryStart);
|
emailAddress = emailAddress.substring(0, queryStart);
|
||||||
}
|
}
|
||||||
Hashtable nameValues = parseNameValuePairs(rawText);
|
Hashtable nameValues = parseNameValuePairs(rawText);
|
||||||
if (emailAddress.length() == 0) {
|
String subject = null;
|
||||||
emailAddress = (String) nameValues.get("to");
|
String body = null;
|
||||||
|
if (nameValues != null) {
|
||||||
|
if (emailAddress.length() == 0) {
|
||||||
|
emailAddress = (String) nameValues.get("to");
|
||||||
|
}
|
||||||
|
subject = (String) nameValues.get("subject");
|
||||||
|
body = (String) nameValues.get("body");
|
||||||
}
|
}
|
||||||
String subject = (String) nameValues.get("subject");
|
|
||||||
String body = (String) nameValues.get("body");
|
|
||||||
return new EmailAddressParsedResult(emailAddress, subject, body, rawText);
|
return new EmailAddressParsedResult(emailAddress, subject, body, rawText);
|
||||||
} else {
|
} else {
|
||||||
if (!EmailDoCoMoParsedResult.isBasicallyValidEmailAddress(rawText)) {
|
if (!EmailDoCoMoParsedResult.isBasicallyValidEmailAddress(rawText)) {
|
||||||
|
|
Loading…
Reference in a new issue