fix contact rendering to work properly

This commit is contained in:
Grahame Grieve 2024-06-01 23:43:28 +10:00
parent 7512347c40
commit 1e940dc489
1 changed files with 1 additions and 1 deletions

View File

@ -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));