/android/export-contacts

To get this branch, use:
bzr branch http://bzr.ed.am/android/export-contacts

« back to all changes in this revision

Viewing changes to src/am/ed/exportcontacts/VcardExporter.java

  • Committer: Tim Marston
  • Date: 2013-07-19 16:31:23 UTC
  • Revision ID: tim@ed.am-20130719163123-3afkyca0ad7kt8tz
Tags: 1.0.2
fixed a NPE for contacts with no birthday

Show diffs side-by-side

added added

removed removed

Lines of Context:
324
324
                                out.append( fold( "NOTE:" + escape( notes.get( a ) ) ) + "\n" );
325
325
 
326
326
                // append birthday
327
 
                String birthday = contact.getBirthday().trim();
 
327
                String birthday = contact.getBirthday();
328
328
                if( birthday != null ) {
 
329
                        birthday.trim();
329
330
                        if( isValidDateAndOrTime( birthday ) )
330
331
                                out.append( fold( "BDAY:" + escape( birthday ) ) + "\n" );
331
332
                        else