[runtime] Disable some tests in full-aot mode which cannot be AOTed because of type...
[mono.git] / mcs / class / monodoc / Monodoc / cache.cs
index 98291a4c03153afac430f5f3d13d55c29ad40f70..f10320230db77ec484d28ac2ce922d4d85dfbe49 100644 (file)
@@ -35,7 +35,9 @@ namespace Monodoc
                static DocCacheHelper ()
                {
                        try {
-                               var cacheValues = Config.Get ("cache").Split (',');
+                               var cacheConfig = Config.Get ("cache");
+                               if (cacheConfig == null) return;
+                               var cacheValues = cacheConfig.Split (',');
                                if (cacheValues.Length == 2 && cacheValues[0].Equals ("file", StringComparison.Ordinal))
                                        cacheBaseDirectory = cacheValues[1].Replace ("~", Environment.GetFolderPath (Environment.SpecialFolder.Personal));
                        } catch {}