~renatofilho/address-book-service/fix-1493552

« back to all changes in this revision

Viewing changes to common/vcard-parser.cpp

  • Committer: Renato Araujo Oliveira Filho
  • Date: 2015-11-03 23:54:53 UTC
  • Revision ID: renato.filho@canonical.com-20151103235453-ns8er0n57w2imp3m
Check if the vcard reader still valid before call function.

Show diffs side-by-side

added added

removed removed

Lines of Context:
412
412
 
413
413
void VCardParser::onReaderStateChanged(QVersitReader::State state)
414
414
{
415
 
    if (state == QVersitReader::FinishedState) {
 
415
    if (m_versitReader && (state == QVersitReader::FinishedState)) {
416
416
        QList<QVersitDocument> documents = m_versitReader->results();
417
417
 
418
418
        QVersitContactImporter contactImporter;