diff options
| author | Robert Gemmell <robbie@apache.org> | 2013-09-23 23:49:17 +0000 |
|---|---|---|
| committer | Robert Gemmell <robbie@apache.org> | 2013-09-23 23:49:17 +0000 |
| commit | d87fdf58eb371b1c95951bb6dd83a0ac85cb6b23 (patch) | |
| tree | d18d2ff8c7202ef4385a2958c87991f01304aca7 /qpid/java/qpid-test-utils/src | |
| parent | f9c3f27c4b405723d8137d216bb57813271507eb (diff) | |
| download | qpid-python-d87fdf58eb371b1c95951bb6dd83a0ac85cb6b23.tar.gz | |
QPID-5161: make UTF8Test use the resources in the jar instead of searching for it on the filesystem
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1525749 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/qpid-test-utils/src')
| -rw-r--r-- | qpid/java/qpid-test-utils/src/main/java/org/apache/qpid/test/utils/TestFileUtils.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/qpid/java/qpid-test-utils/src/main/java/org/apache/qpid/test/utils/TestFileUtils.java b/qpid/java/qpid-test-utils/src/main/java/org/apache/qpid/test/utils/TestFileUtils.java index d04413f06f..26bbe151d2 100644 --- a/qpid/java/qpid-test-utils/src/main/java/org/apache/qpid/test/utils/TestFileUtils.java +++ b/qpid/java/qpid-test-utils/src/main/java/org/apache/qpid/test/utils/TestFileUtils.java @@ -201,6 +201,11 @@ public class TestFileUtils */ public static void copy(InputStream in, File dst) throws IOException { + if(in == null) + { + throw new IllegalArgumentException("Provided InputStream must not be null"); + } + try { if (!dst.exists()) |
