aboutsummaryrefslogtreecommitdiff
path: root/usage_examples/CleanupExample_post.jpage
diff options
context:
space:
mode:
Diffstat (limited to 'usage_examples/CleanupExample_post.jpage')
-rw-r--r--usage_examples/CleanupExample_post.jpage8
1 files changed, 6 insertions, 2 deletions
diff --git a/usage_examples/CleanupExample_post.jpage b/usage_examples/CleanupExample_post.jpage
index 91458459..7e87c153 100644
--- a/usage_examples/CleanupExample_post.jpage
+++ b/usage_examples/CleanupExample_post.jpage
@@ -13,10 +13,14 @@ public class CleanupExample {
out.write(b, 0, r);
}
} finally {
- out.close();
+ if (out != null) {
+ out.close();
+ }
}
} finally {
- in.close();
+ if (in != null) {
+ in.close();
+ }
}
}
}