Commit includes ControlLoopPolicy API and bugfixes
[policy/engine.git] / PolicyEngineAPI / src / main / java / org / openecomp / policy / std / ManualClientEndDMAAP.java
index 0e30ada..f4a218d 100644 (file)
@@ -60,7 +60,9 @@ public class ManualClientEndDMAAP {
                } catch (Exception e) {
                        logger.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + "Unable to create DMaaP Publisher: ", e);
                }
-        pub.close (); 
+               if(pub != null){
+               pub.close (); 
+               }
        }
 
        //NOTE:  should be able to remove this for DMAAP since we will not be creating topics dynamically