We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b65ff9a commit 61ff8eaCopy full SHA for 61ff8ea
src/main/java/org/scijava/io/handle/AbstractHigherOrderHandle.java
@@ -46,7 +46,7 @@ public abstract class AbstractHigherOrderHandle<L extends Location> extends
46
AbstractDataHandle<L>
47
{
48
49
- private final DataHandle<L> handle;
+ private DataHandle<L> handle;
50
private boolean closed;
51
52
public AbstractHigherOrderHandle(final DataHandle<L> handle) {
@@ -66,6 +66,7 @@ public boolean isWritable() {
66
67
@Override
68
public long length() throws IOException {
69
+ ensureOpen();
70
return handle.length();
71
}
72
@@ -85,6 +86,7 @@ public void close() throws IOException {
85
86
cleanup();
87
closed = true;
88
handle.close();
89
+ handle = null;
90
91
92
0 commit comments