bmatthias / kolab-android

Automatically exported from code.google.com/p/kolab-android
Other
0 stars 0 forks source link

Wrong formated XML crash the application #40

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Sync Kolab with Outlook (Toltec Connector)
2. A contact has an XML like following

<contact version="1.0">
<product-id>Toltec Connector Open Format (2.0)</product-id>
<uid>TOLTEC.8C3D3E70FB7E403281CEFDCA398B4EB2</uid>
<creation-date>2009-08-09T14:57:34Z</creation-date>
<last-modification-date>2010-07-19T07:43:26Z</last-modification-date>
<sensitivity>public</sensitivity>
−
<name>
<given-name>Vorname</given-name>
<last-name>Nachname</last-name>
<full-name>Vorname Nachname</full-name>
</name>
<birthday>1978-01-01</birthday>
<phone>
<type>home1</type>
</phone>
<phone>
<type>mobile</type>
<number>+41123456789</number>
</phone>
<email>
<display-name>test@example.com</display-name>
<smtp-address>test@example.com</smtp-address>
</email>
<address>
<type>home</type>
<street>Strasse</street>
<locality>Luzern</locality>
<postal-code>6005</postal-code>
<country>Schweiz</country>
</address>
</contact>

What is the expected output? What do you see instead?
A null pointer exception in the method toXML because the home Phone hasn't a 
number.

What version of the product are you using? On what operating system?
Newest Froyo branch. Google Nexus S 2.3.2

Original issue reported on code.google.com by ghoj...@gmail.com on 1 Mar 2011 at 11:59

GoogleCodeExporter commented 8 years ago
Fixed in gitorious froyo branch

Original comment by STrille...@googlemail.com on 1 Mar 2011 at 3:29