diff --git a/ReportImp/PerspektivenEV/Export/DatevExporterBthg.cs b/ReportImp/PerspektivenEV/Export/DatevExporterBthg.cs index 0e70205d4..6c378ab0a 100644 --- a/ReportImp/PerspektivenEV/Export/DatevExporterBthg.cs +++ b/ReportImp/PerspektivenEV/Export/DatevExporterBthg.cs @@ -210,7 +210,7 @@ namespace PerspektivenEV.Export if (row[12] != null) isApproved = row[12].ToString(); - if (row[16] != null) + if (row[16] != null && row[16] != DBNull.Value) cOid = long.Parse(row[16].ToString()); if (sb.Length > 0)