NullReferenceException
Try NowTime = DateTime.Now If IsValidShutdown Then tblRawTesterShutdown = objDAL.GetRawTesterShutdown(StartTime, NowTime) asdasdIf tblRawTesterShutdown.Rows.Count > 0 Then For Each RowItem As DataRow In tblRawTesterShutdown.Rows objShutdownReport = New ShutdownReportENT With objShutdownReport .ShutdownType = _ShutdownType .TesterID = LineNo .E_Code = RowItem.Item("E_FIELD").ToString.Trim .F_Code = RowItem.Item("F_FIELD").ToString.Trim .G_Code = RowItem.Item("G_FIELD").ToString.Trim .Status = RowItem.Item("HSA_STATUS").ToString.Trim .Family = RowItem.Item("FAMILY").ToString.Trim .Count = CInt(RowItem.Item("COUNTOFLINENO")) .StartTime = StartTime .Timestamp = NowTime .CACHE_FAMILY = RowItem.Item("CACHE_FAMILY").ToString.Trim If Family = Nothing Then Family = "'" & .Family & "'" Else If Family.IndexOf(.Family) = -1 Then Family = Family & ",'" & .Family & "'" End If End If End With objDAL.InsertShutdownReport(objShutdownReport) Next Else Return False End If Catch ex As Exception Throw New Exception("Shutdown: " & ex.Message) Finally End Try Return False
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)