commit | b80fbdfc254f18d74dd346b94c39b9befb6bfdfa | [log] [tgz] |
---|---|---|
author | Madhusudan.C.S <madhusudancs@gmail.com> | Sat Apr 20 03:06:47 2013 -0700 |
committer | Madhusudan.C.S <madhusudancs@gmail.com> | Sat Apr 20 03:06:47 2013 -0700 |
tree | 78f4416c57ee72bd8b60028ceeb17dcaf2f8ca18 | |
parent | 41317b2135bd437cdee1ad2e3f62c4a910d5697d [diff] |
FileReference deletion should not be attempted when it is not defined.
diff --git a/hyracks/hyracks-control/hyracks-control-nc/src/main/java/edu/uci/ics/hyracks/control/nc/dataset/ResultState.java b/hyracks/hyracks-control/hyracks-control-nc/src/main/java/edu/uci/ics/hyracks/control/nc/dataset/ResultState.java index 0cd9cec..ce37f33 100644 --- a/hyracks/hyracks-control/hyracks-control-nc/src/main/java/edu/uci/ics/hyracks/control/nc/dataset/ResultState.java +++ b/hyracks/hyracks-control/hyracks-control-nc/src/main/java/edu/uci/ics/hyracks/control/nc/dataset/ResultState.java
@@ -102,7 +102,9 @@ // Since file handle could not be closed, just ignore. } } - fileRef.delete(); + if (fileRef != null) { + fileRef.delete(); + } } public synchronized void write(DatasetMemoryManager datasetMemoryManager, ByteBuffer buffer)