[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jakarta-commons-dev
Subject:    [commons-vfs] branch master updated: Avoid very unlikely NPE.
From:       ggregory () apache ! org
Date:       2019-01-31 23:14:10
Message-ID: 154897645059.27735.10227437013646124207 () gitbox ! apache ! org
[Download RAW message or body]

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-vfs.git


The following commit(s) were added to refs/heads/master by this push:
     new 48195e4  Avoid very unlikely NPE.
48195e4 is described below

commit 48195e4db32269bb93191a6a4dc4587023cf7a4a
Author: Gary Gregory <ggregory@rocketsoftware.com>
AuthorDate: Thu Jan 31 18:14:09 2019 -0500

    Avoid very unlikely NPE.
---
 .../src/test/java/org/apache/commons/vfs2/test/AbstractTestSuite.java  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/commons-vfs2/src/test/java/org/apache/commons/vfs2/test/AbstractTestSuite.java \
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/test/AbstractTestSuite.java \
                index f3f2e84..e98d58d 100644
--- a/commons-vfs2/src/test/java/org/apache/commons/vfs2/test/AbstractTestSuite.java
+++ b/commons-vfs2/src/test/java/org/apache/commons/vfs2/test/AbstractTestSuite.java
@@ -260,7 +260,8 @@ public abstract class AbstractTestSuite extends TestSetup {
             sb.append("#");
             sb.append(iter + 1);
             sb.append(": ");
-            sb.append(thread.getThreadGroup() != null ? \
thread.getThreadGroup().getName() : "(null)"); +            final ThreadGroup \
threadGroup = thread.getThreadGroup(); +            sb.append(threadGroup != null ? \
threadGroup.getName() : "(null)");  sb.append("\t");
             sb.append(thread.getName());
             sb.append("\t");


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic