Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id BB429200B54 for ; Thu, 28 Jul 2016 22:28:27 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B9C21160A85; Thu, 28 Jul 2016 20:28:27 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 32262160A56 for ; Thu, 28 Jul 2016 22:28:27 +0200 (CEST) Received: (qmail 4475 invoked by uid 500); 28 Jul 2016 20:28:26 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 4464 invoked by uid 99); 28 Jul 2016 20:28:26 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Jul 2016 20:28:26 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id DDC82E0100; Thu, 28 Jul 2016 20:28:25 +0000 (UTC) From: scop To: dev@activemq.apache.org Reply-To: dev@activemq.apache.org References: In-Reply-To: Subject: [GitHub] activemq-artemis pull request #680: Null pointer/check related fixes Content-Type: text/plain Message-Id: <20160728202825.DDC82E0100@git1-us-west.apache.org> Date: Thu, 28 Jul 2016 20:28:25 +0000 (UTC) archived-at: Thu, 28 Jul 2016 20:28:27 -0000 Github user scop commented on a diff in the pull request: https://github.com/apache/activemq-artemis/pull/680#discussion_r72696215 --- Diff: artemis-commons/src/main/java/org/apache/activemq/artemis/utils/FileUtil.java --- @@ -63,10 +63,15 @@ public static final boolean deleteDirectory(final File directory) { attempts++; } - for (String file : files) { - File f = new File(directory, file); - if (!deleteDirectory(f)) { - logger.warn("Failed to clean up file: " + f.getAbsolutePath()); + if (files == null) { + logger.warn("Could not list files to clean up in: " + directory.getAbsolutePath()); --- End diff -- @johnament I don't know, but FWIW the "Failed to clean up file" one that already was and still is there is not (assuming I understand what a coded log message is...) --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---