* Copyright (C) 2017 Amdocs
  * ================================================================================
  * Modifications Copyright (C) 2019 Ericsson
+ * Modifications Copyright (C) 2019 IBM
  * =============================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
             log.info("APPC-MESSAGE:" + e.getMessage());
 
         } finally {
+          if(dbResourceManager!=null)
             dbResourceManager.cleanUp();
         }
     }
             log.info("APPC-MESSAGE:" + e.getMessage());
 
         } finally {
+          if(dbResourceManager!=null)
             dbResourceManager.cleanUp();
         }
     }