From dfe29e3ea4028ff04f73606f46404baf63f81f5b 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(-) (limited to 'auth/auth-batch/src/main') 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