Skip to content

Commit

Permalink
bugfix string empty
Browse files Browse the repository at this point in the history
  • Loading branch information
Renato Martins committed Feb 10, 2020
1 parent 7c6abcd commit bcd032f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ bld/
# Uncomment if you have tasks that create the project's static files in wwwroot
#wwwroot/

.vscode/

# Visual Studio 2017 auto generated files
Generated\ Files/

Expand Down
2 changes: 1 addition & 1 deletion HorasExtrasX/ExcelProcess.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class ExcelProcess
{
string evento = row.GetCell(INDEX_CELL_EVENTOS).ToString();

if (Char.IsNumber(evento, 0))
if (evento.Trim() != "" && Char.IsNumber(evento, 0))
{

string horas = evento.Substring(0, 5);
Expand Down

0 comments on commit bcd032f

Please sign in to comment.