Do not assign m_codec if QTextCodec::codecForName(name) returns NULL. This will cause crashes.
Do not assign m_codec if QTextCodec::codecForName(name)
returns NULL. This will cause crashes.

BUG: 178789

svn path=/trunk/KDE/kdelibs/kate/; revision=969284

DickJ/kate,hlamer/kate,hlamer/kate,hlamer/kate,sandsmark/kate,sandsmark/kate,cmacq2/kate,hlamer/kate,hlamer/kate,jfmcarreira/kate,DickJ/kate,cmacq2/kate,hlamer/kate,sandsmark/kate,hlamer/kate,hlamer/kate,sandsmark/kate,hlamer/kate,DickJ/kate,jfmcarreira/kate,hlamer/kate,DickJ/kate,jfmcarreira/kate,cmacq2/kate