diff --git a/portal-impl/src/com/liferay/portlet/wiki/util/WikiPageIndexer.java b/portal-impl/src/com/liferay/portlet/wiki/util/WikiPageIndexer.java
index 6171dd176a4d50c106949a03590ba150fff2f3e4..5884f8b1b2194a14c36ff81df097f85451b43b93 100644
--- a/portal-impl/src/com/liferay/portlet/wiki/util/WikiPageIndexer.java
+++ b/portal-impl/src/com/liferay/portlet/wiki/util/WikiPageIndexer.java
@@ -77,21 +77,26 @@ public class WikiPageIndexer extends BaseIndexer {
 
 		WikiPage page = null;
 
-		if (obj instanceof DLFileEntry) {
-			DLFileEntry dlFileEntry = (DLFileEntry)obj;
+		try {
+			if (obj instanceof DLFileEntry) {
+				DLFileEntry dlFileEntry = (DLFileEntry)obj;
 
-			page = WikiPageAttachmentsUtil.getPage(
-				dlFileEntry.getFileEntryId());
+				page = WikiPageAttachmentsUtil.getPage(
+					dlFileEntry.getFileEntryId());
 
-			document.addKeyword(
-				Field.CLASS_NAME_ID,
-				PortalUtil.getClassNameId(WikiPage.class.getName()));
-			document.addKeyword(Field.CLASS_PK, page.getResourcePrimKey());
-		}
-		else if (obj instanceof MBMessage) {
-			MBMessage message = (MBMessage)obj;
+				document.addKeyword(
+					Field.CLASS_NAME_ID,
+					PortalUtil.getClassNameId(WikiPage.class.getName()));
+				document.addKeyword(Field.CLASS_PK, page.getResourcePrimKey());
+			}
+			else if (obj instanceof MBMessage) {
+				MBMessage message = (MBMessage)obj;
 
-			page = WikiPageLocalServiceUtil.getPage(message.getClassPK());
+				page = WikiPageLocalServiceUtil.getPage(message.getClassPK());
+			}
+		}
+		catch (Exception e) {
+			return;
 		}
 
 		document.addKeyword(Field.NODE_ID, page.getNodeId());
