Fixed SEGV caused by dereferencing null pointer. This resolves issue #3.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/5/head
Michele Calgaro 2 years ago
parent 0fd96573f7
commit 90809a0fbd
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -42,7 +42,15 @@ RadialMap::Widget::path() const
KURL KURL
RadialMap::Widget::url( File const * const file ) const RadialMap::Widget::url( File const * const file ) const
{ {
return KURL::fromPathOrURL( file ? file->fullPath() : m_tree->fullPath() ); if (file)
{
return KURL::fromPathOrURL(file->fullPath());
}
if (m_tree)
{
return KURL::fromPathOrURL(m_tree->fullPath());
}
return KURL::fromPathOrURL(TQString::null);
} }
void void

Loading…
Cancel
Save