diff --git a/kdecore/svgicons/ksvgiconengine.cpp b/kdecore/svgicons/ksvgiconengine.cpp index 2dcd1c226..53a212c37 100644 --- a/kdecore/svgicons/ksvgiconengine.cpp +++ b/kdecore/svgicons/ksvgiconengine.cpp @@ -542,6 +542,8 @@ KSVGIconEngine::~KSVGIconEngine() bool KSVGIconEngine::load(int width, int height, const TQString &path) { + if(path.isNull()) return false; + TQDomDocument svgDocument("svg"); TQFile file(path);