[monkeydoc] Fix regression in processing non-existent entry in index.xml files
authorJérémie Laval <jeremie.laval@gmail.com>
Tue, 18 Dec 2012 17:39:56 +0000 (18:39 +0100)
committerJérémie Laval <jeremie.laval@gmail.com>
Tue, 18 Dec 2012 17:39:56 +0000 (18:39 +0100)
mcs/tools/monkeydoc/Monkeydoc/providers/EcmaDoc.cs

index 6ef50ccab9a47c110476868382d99675f5289380..1d3c9fb2efae3455488623a86e81eaaa66b6f9b9 100644 (file)
@@ -47,6 +47,8 @@ namespace MonkeyDoc.Providers
                                                var id = indexGenerator (type);
                                                string typeFilePath;
                                                var typeDocument = EcmaDoc.LoadTypeDocument (asm, nsName, type.Attribute ("Name").Value, out typeFilePath);
+                                               if (typeDocument == null)
+                                                       continue;
                                                using (var file = File.OpenRead (typeFilePath))
                                                        storage.Store (id, file);
                                                nsElements.Add (ExtractClassSummary (typeFilePath));