commit | 4a99667ef6a47c4e88c31ca65e1425e0820ae47b | [log] [tgz] |
---|---|---|
author | Madhusudan.C.S <madhusudancs@gmail.com> | Thu Apr 25 04:39:32 2013 -0700 |
committer | Madhusudan.C.S <madhusudancs@gmail.com> | Thu Apr 25 04:39:32 2013 -0700 |
tree | cdc63dd952efb2545b9a7ae9175055b01c1d4f47 | |
parent | 89b7da11388790da044e37c54bc3bd1369f3b5fd [diff] |
Check the record status only if it is not null.
diff --git a/hyracks/hyracks-control/hyracks-control-cc/src/main/java/edu/uci/ics/hyracks/control/cc/dataset/DatasetDirectoryService.java b/hyracks/hyracks-control/hyracks-control-cc/src/main/java/edu/uci/ics/hyracks/control/cc/dataset/DatasetDirectoryService.java index f68562f..21b05d4 100644 --- a/hyracks/hyracks-control/hyracks-control-cc/src/main/java/edu/uci/ics/hyracks/control/cc/dataset/DatasetDirectoryService.java +++ b/hyracks/hyracks-control/hyracks-control-cc/src/main/java/edu/uci/ics/hyracks/control/cc/dataset/DatasetDirectoryService.java
@@ -99,7 +99,7 @@ records[partition].writeEOS(); for (DatasetDirectoryRecord record : records) { - if (record.getStatus() == DatasetDirectoryRecord.Status.SUCCESS) { + if ((record != null) && (record.getStatus() == DatasetDirectoryRecord.Status.SUCCESS)) { successCount++; } }