aboutsummaryrefslogtreecommitdiff
path: root/src/PriceListTools
diff options
context:
space:
mode:
Diffstat (limited to 'src/PriceListTools')
-rw-r--r--src/PriceListTools/PriceListTool.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/PriceListTools/PriceListTool.cs b/src/PriceListTools/PriceListTool.cs
index cf2cd59..c3cc137 100644
--- a/src/PriceListTools/PriceListTool.cs
+++ b/src/PriceListTools/PriceListTool.cs
@@ -39,6 +39,12 @@ namespace RehauSku.PriceListTools
foreach (var kvp in dictionary)
{
Range foundCell = TargetFile.skuCell.EntireColumn.Find(kvp.Key.Sku);
+ if (foundCell == null)
+ {
+ missing.Add(kvp);
+ continue;
+ }
+
string foundCellGroup = groupColumn[foundCell.Row, 1].ToString();
while (foundCell != null && foundCellGroup != kvp.Key.Group)