[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdesupport/qca/plugins/qca-wingss
From:       Justin Karneges <infiniti () affinix ! com>
Date:       2008-07-29 4:09:08
Message-ID: 1217304548.548630.8158.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 838933 by infiniti:

take first provider from list only if list is not empty :p


 M  +5 -2      qca-wingss.cpp  


--- trunk/kdesupport/qca/plugins/qca-wingss/qca-wingss.cpp #838932:838933
@@ -1824,8 +1824,11 @@
 				}
 			}
 
-			// use the first
-			s = static_cast<SASLContext *>(list.first()->createContext("sasl"));
+			if(!list.isEmpty())
+			{
+				// use the first
+				s = static_cast<SASLContext *>(list.first()->createContext("sasl"));
+			}
 #ifndef FORWARD_ONLY
 		}
 #endif
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic