Possible NP 91/73791/1 casablanca
authorInstrumental <jonathan.gathman@att.com>
Wed, 28 Nov 2018 13:36:11 +0000 (07:36 -0600)
committerInstrumental <jonathan.gathman@att.com>
Wed, 28 Nov 2018 13:41:06 +0000 (07:41 -0600)
Issue-ID: AAF-641
Change-Id: I54b3158091882671173638bc11879fd52512c07c
Signed-off-by: Instrumental <jonathan.gathman@att.com>
auth/auth-batch/src/main/java/org/onap/aaf/auth/reports/Expiring.java

index 6974a5d..289da58 100644 (file)
@@ -166,7 +166,9 @@ public class Expiring extends Batch {
                                                }
                                        }
                                } finally {
-                                       expOwner.close();
+                                       if(expOwner!=null) {
+                                               expOwner.close();
+                                       }
                                }
                        }