Refactor
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user