[Bug 73039] cvs tools may crash kdevelop

Jens Dagerbo jens.dagerbo at swipnet.se
Tue Jan 20 19:39:03 UTC 2004


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
      
http://bugs.kde.org/show_bug.cgi?id=73039      
jens.dagerbo at swipnet.se changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From jens.dagerbo at swipnet.se  2004-01-20 19:38 -------
Subject: kdevelop/vcs

CVS commit by dagerbo: 

Quick fix for bug 73039.

CCMAIL: 73039-done at bugs.kde.org


  M +4 -0      cvsclient/cvspart.cpp   1.71
  M +1 -1      cvsservice/cvspartimpl.cpp   1.23


--- kdevelop/vcs/cvsclient/cvspart.cpp  #1.70:1.71
@@ -977,4 +977,6 @@ void CvsPart::tag( const KURL::List& url
 void CvsPart::addToIgnoreList( const KURL::List& urlList )
 {
+        if ( !project() ) return;
+
     CvsUtils::addToIgnoreList( project()->projectDirectory(), urlList );
 }
@@ -984,4 +986,6 @@ void CvsPart::addToIgnoreList( const KUR
 void CvsPart::removeFromIgnoreList( const KURL::List& urlList )
 {
+        if ( !project() ) return;
+
     CvsUtils::removeFromIgnoreList( project()->projectDirectory(), urlList );
 }

--- kdevelop/vcs/cvsservice/cvspartimpl.cpp  #1.22:1.23
@@ -317,5 +317,5 @@ KDevMainWindow *CvsServicePartImpl::main
 QString CvsServicePartImpl::projectDirectory() const
 {
-    return m_part->project()->projectDirectory();
+    return m_part->project() ? m_part->project()->projectDirectory() : QString::null;
 }




More information about the KDevelop-devel mailing list