Skip to content

Commit

Permalink
Add missing NPE checks.
Browse files Browse the repository at this point in the history
  • Loading branch information
arnocandel committed Aug 7, 2014
1 parent dd72463 commit e0a5780
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/hex/DeepLearningIrisTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ void runFraction(float fraction) {
// }
}
} finally {
fpreds.delete();
if (fpreds != null) fpreds.delete();
}
Log.info("Predicted values: PASS");

Expand Down Expand Up @@ -317,7 +317,7 @@ void runFraction(float fraction) {
Log.info("Best_model's error : " + bestErr * 100 + "%.");
compareVal(bestErr, best_err, abseps, releps);
} finally {
bestPredict.delete();
if (bestPredict != null) bestPredict.delete();
}
}

Expand Down

0 comments on commit e0a5780

Please sign in to comment.