Please report new issues athttps://github.com/DOCGroup
1 // $Id: Convert_Plan_Impl.cpp 93621 2011-03-22 15:00:58Z mesnier_p $ 2 3 #include "Convert_Plan_Impl.h" 4 #include "ace/OS_NS_stdio.h" 5 #include "tao/CDR.h" 6 #include "dance/Deployment/Deployment_PlanErrorC.h" 7 #include "Config_Handlers/XML_File_Intf.h" 8 #include "Config_Handlers/Common.h" 9 #include "dance/Logger/Log_Macros.h" 10 11 namespace DAnCE 12 { 13 Deployment::DeploymentPlan * 14 Convert_Plan::read_xml_plan (const ACE_TCHAR *filename) 15 { 16 DANCE_TRACE ("Convert_Plan::read_xml_plan"); 17 Event var_compare_op: Comparing "filename" to null implies that "filename" might be null. At conditional (1): "!filename" taking true path 18 if (!filename) 19 { At conditional (2): "DAnCE_debug_level >= 5U" taking true path 20 DANCE_ERROR (DANCE_LOG_WARNING, (LM_WARNING, 21 DLINFO ACE_TEXT ("Convert_Plan::read_xml_plan - ") 22 ACE_TEXT ("Passed a null pointer, returning.\n"))); 23 } 24 Event var_deref_model: Passing null variable "filename" to function "DAnCE::Config_Handlers::XML_File_Intf::XML_File_Intf(char const *)", which dereferences it. [details] 25 DAnCE::Config_Handlers::XML_File_Intf xml_intf (filename); 26 xml_intf.add_search_path ( 27 ACE_TEXT("ACE_ROOT"), ACE_TEXT("/docs/schema/")); 28 xml_intf.add_search_path ( 29 ACE_TEXT("TAO_ROOT"), ACE_TEXT("/docs/schema/")); 30 xml_intf.add_search_path ( 31 ACE_TEXT("CIAO_ROOT"), ACE_TEXT("/docs/schema/")); 32 xml_intf.add_search_path ( 33 ACE_TEXT("DANCE_ROOT"), ACE_TEXT("/docs/schema/")); 34 35 try 36 {