Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 295278
Collapse All | Expand All

(-)sopranoindexwriter.cpp (+11 lines)
Lines 42-47 Link Here
42
#include <QtCore/QUuid>
42
#include <QtCore/QUuid>
43
43
44
#include <KUrl>
44
#include <KUrl>
45
#include <KDebug>
45
46
46
#include <sys/stat.h>
47
#include <sys/stat.h>
47
#include <stdlib.h>
48
#include <stdlib.h>
Lines 502-507 Link Here
502
    // Thus, we can just remember that and use it here.
503
    // Thus, we can just remember that and use it here.
503
    //
504
    //
504
505
506
    // mjansen: 08/2009 - I get many crashes here and can't print s, p and o
507
    // from the debugger with the core files. So print out this information
508
    // and then die.
509
    if (!d->currentResult) {
510
        kWarning() << "Attempt to add" << s.c_str() << p.c_str() << o.c_str() << "to IndexWriter with currentResult = NULL";
511
        Q_ASSERT(d->currentResult);
512
        // In production just return.
513
        return;
514
    }
515
505
    FileMetaData* md = static_cast<FileMetaData*>( d->currentResult->writerData() );
516
    FileMetaData* md = static_cast<FileMetaData*>( d->currentResult->writerData() );
506
517
507
    QUrl subject = d->mapNode( md, s );
518
    QUrl subject = d->mapNode( md, s );

Return to bug 295278