]> source.dussan.org Git - jackcess.git/commitdiff
Fix NPE when running unit tests with db format MSISAM (fixes issue 3529534)
authorJames Ahlborn <jtahlborn@yahoo.com>
Fri, 25 May 2012 01:44:55 +0000 (01:44 +0000)
committerJames Ahlborn <jtahlborn@yahoo.com>
Fri, 25 May 2012 01:44:55 +0000 (01:44 +0000)
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@626 f203690c-595d-4dc9-a70b-905162fa7fd2

src/changes/changes.xml
test/src/java/com/healthmarketscience/jackcess/PropertiesTest.java

index 8f2d1d4f8d6561bdbeaa44699c45d755bb4e6a0b..9e81c4a8174055e339ac8be1218ef66fbb3e8860 100644 (file)
@@ -8,6 +8,9 @@
       <action dev="jahlborn" type="update" issue="3523179">
         Add osgi header information to the manifest.
       </action>
+      <action dev="jahlborn" type="fix" issue="3529534">
+        Fix NPE when running unit tests with db format MSISAM.
+      </action>
     </release>
     <release version="1.2.7" date="2012-04-02">
       <action dev="jahlborn" type="update" issue="3479560">
index 34d10d62f14c5840e58a1f8e71445328ae1f1acc..fccbc6785243b9be9d33bf3e1956d5908673ca5c 100644 (file)
@@ -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()) {