diff options
author | James Ahlborn <jtahlborn@yahoo.com> | 2012-05-25 01:44:55 +0000 |
---|---|---|
committer | James Ahlborn <jtahlborn@yahoo.com> | 2012-05-25 01:44:55 +0000 |
commit | 782e6175383597e0dc297c798bbccad582e2fd20 (patch) | |
tree | d033af6b3932f3ce493aab6bb797bf831840ebc5 /test | |
parent | 2012b9931dec2e5fd9afc8804fe016667fc58285 (diff) | |
download | jackcess-782e6175383597e0dc297c798bbccad582e2fd20.tar.gz jackcess-782e6175383597e0dc297c798bbccad582e2fd20.zip |
Fix NPE when running unit tests with db format MSISAM (fixes issue 3529534)
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@626 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'test')
-rw-r--r-- | test/src/java/com/healthmarketscience/jackcess/PropertiesTest.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/src/java/com/healthmarketscience/jackcess/PropertiesTest.java b/test/src/java/com/healthmarketscience/jackcess/PropertiesTest.java index 34d10d6..fccbc67 100644 --- a/test/src/java/com/healthmarketscience/jackcess/PropertiesTest.java +++ b/test/src/java/com/healthmarketscience/jackcess/PropertiesTest.java @@ -170,6 +170,9 @@ public class PropertiesTest extends TestCase { for(FileFormat ff : SUPPORTED_FILEFORMATS_FOR_READ) { File[] dbFiles = new File(DIR_TEST_DATA, ff.name()).listFiles(); + if(dbFiles == null) { + continue; + } for(File f : dbFiles) { if(!f.isFile()) { |