Skip to content

Commit

Permalink
Check for null page
Browse files Browse the repository at this point in the history
  • Loading branch information
stevencohn authored and weissm committed Jan 22, 2024
1 parent 1a86e29 commit adf3a0b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions OneMore/Commands/Tagging/HashtagScanner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,14 @@ private async Task<bool> ScanPage(
return false;
}

// avoid defect https://github.com/stevencohn/OneMore/issues/1268
// GetPage throws generic COM exception and returns null...
if (page == null)
{
logger.WriteLine($"skipping null page {pageID} '{path}'");
return false;
}

var title = page.Title;
var titleID = page.TitleID;
var scanner = factory.CreatePageScanner(page.Root);
Expand Down

0 comments on commit adf3a0b

Please sign in to comment.