From 1b4aa9db3568f2e9af93ee4ad63482fb33f6d144 Mon Sep 17 00:00:00 2001 From: Instrumental Date: Wed, 28 Nov 2018 07:36:11 -0600 Subject: Possible NP Issue-ID: AAF-641 Change-Id: I54b3158091882671173638bc11879fd52512c07c Signed-off-by: Instrumental --- auth/auth-batch/src/main/java/org/onap/aaf/auth/reports/Expiring.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/auth/auth-batch/src/main/java/org/onap/aaf/auth/reports/Expiring.java b/auth/auth-batch/src/main/java/org/onap/aaf/auth/reports/Expiring.java index 6974a5db..289da58e 100644 --- a/auth/auth-batch/src/main/java/org/onap/aaf/auth/reports/Expiring.java +++ b/auth/auth-batch/src/main/java/org/onap/aaf/auth/reports/Expiring.java @@ -166,7 +166,9 @@ public class Expiring extends Batch { } } } finally { - expOwner.close(); + if(expOwner!=null) { + expOwner.close(); + } } } -- cgit 1.2.3-korg