From: James Ahlborn Date: Fri, 25 May 2012 01:44:55 +0000 (+0000) Subject: Fix NPE when running unit tests with db format MSISAM (fixes issue 3529534) X-Git-Tag: jackcess-1.2.8~5 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=782e6175383597e0dc297c798bbccad582e2fd20;p=jackcess.git 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 --- diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 8f2d1d4..9e81c4a 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -8,6 +8,9 @@ Add osgi header information to the manifest. + + Fix NPE when running unit tests with db format MSISAM. + 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()) {