NPE when generating phone event and there is no caller ID information

Description

Adding text to an XML document must not be null
java.lang.IllegalArgumentException: Adding text to an XML document must not be null
at org.dom4j.DocumentFactory.createText(DocumentFactory.java:174)
at org.dom4j.tree.AbstractElement.addText(AbstractElement.java:899)
at org.dom4j.tree.AbstractElement.setText(AbstractElement.java:1120)
at org.jivesoftware.phone.asterisk.AsteriskEventHandler$OnPhoneTask.run(AsteriskEventHandler.java:242)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)

Environment

None
Fixed

Assignee

Gaston Dombiak

Reporter

Gaston Dombiak