fix contact rendering to work properly
This commit is contained in:
parent
7512347c40
commit
1e940dc489
|
@ -1483,7 +1483,7 @@ public class DataRenderer extends Renderer implements CodeResolver {
|
|||
x.addText(displayContactPoint(contact));
|
||||
break;
|
||||
case PHONE:
|
||||
if (contact.hasPrimitiveValue() && contact.getValue().startsWith("+")) {
|
||||
if (contact.hasValue() && contact.getValue() != null && contact.getValue().startsWith("+")) {
|
||||
x.ah("tel:"+contact.getValue().replace(" ", "")).tx(contact.getValue());
|
||||
} else {
|
||||
x.addText(displayContactPoint(contact));
|
||||
|
|
Loading…
Reference in New Issue