Skip to content

Commit

Permalink
- issue #68: don't stumble over invalid result sets
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergmann committed May 30, 2020
1 parent d9c986f commit 189f21e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ public ResultType call()
public ResultType getResult()
{
if (isDone) return result;
if (worker == null) return result;

try
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,9 @@ else if (!file.canRead() || !file.isFile()) // Something's wrong.
// have to keep testing the values themselves.

int numRows = data.length;
if (numRows == 0 || data[0] == null)
return;

int numColumns = data[0].length;
for (int row = 0; row < numRows; row++)
for (int col = 0; col < numColumns; col++)
Expand Down

0 comments on commit 189f21e

Please sign in to comment.