This commit is contained in:
2024-02-28 09:52:54 -05:00
parent 7b1249bdc0
commit 8d9f47b395
3 changed files with 7 additions and 6 deletions

View File

@@ -151,10 +151,11 @@ namespace MarketData.Helper
for(int index=0;index<tables.Count;index++)
{
HtmlNodeCollection collection = tables[index].SelectNodes(".//tr");
if(null==collection)continue;
for(int itemIndex=0;itemIndex<collection.Count;itemIndex++)
{
String marker=collection[itemIndex].InnerText;
if(marker.StartsWith(startsWith))
if(null!=marker && marker.StartsWith(startsWith))
{
return tables[index];
}