From 782e6175383597e0dc297c798bbccad582e2fd20 Mon Sep 17 00:00:00 2001 From: James Ahlborn Date: Fri, 25 May 2012 01:44:55 +0000 Subject: [PATCH] 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 --- src/changes/changes.xml | 3 +++ .../java/com/healthmarketscience/jackcess/PropertiesTest.java | 3 +++ 2 files changed, 6 insertions(+) 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()) { -- 2.39.5