]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Bug fixed when creating AliCDBGridParam and the cache folder is not set.
authorzampolli <zampolli@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 17 Jun 2010 13:48:20 +0000 (13:48 +0000)
committerzampolli <zampolli@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 17 Jun 2010 13:48:20 +0000 (13:48 +0000)
Related to bug #68721.

STEER/AliCDBGrid.cxx

index 2ee6056d146dce8a249dc37f7695277a1627742f..43fc883c5d00bcd51c9d489a3eac5afa9b31ceb4 100644 (file)
@@ -1122,7 +1122,7 @@ AliCDBParam* AliCDBGridFactory::CreateParameter(const char* gridString) {
                }
                else if (key.Contains("cacheF",TString::kIgnoreCase)){
                        cacheFolder = value;
-                       if (!cacheFolder.EndsWith("/"))
+                       if (!cacheFolder.IsNull() && !cacheFolder.EndsWith("/"))
                                cacheFolder += "/";
                }
                else if (key.Contains("folder",TString::kIgnoreCase)){