]> source.dussan.org Git - poi.git/commitdiff
possible npe in test
authorPJ Fanning <fanningpj@apache.org>
Thu, 21 Mar 2019 09:20:00 +0000 (09:20 +0000)
committerPJ Fanning <fanningpj@apache.org>
Thu, 21 Mar 2019 09:20:00 +0000 (09:20 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1855969 13f79535-47bb-0310-9956-ffa450edef68

src/testcases/org/apache/poi/util/TestIOUtils.java

index f47a92fc5807a287f1ac80771dd068067ba5d667..a8e9bbfa373ebc2df05218d37f24ab1c0ec5b700 100644 (file)
@@ -60,7 +60,7 @@ public final class TestIOUtils {
 
     @AfterClass
     public static void tearDown() {
-        assertTrue(TMP.delete());
+        if (TMP != null) assertTrue(TMP.delete());
     }
 
     @Test