[Mobies-commit] [commit] r4115 - UDM/trunk/src/UdmGme
ksmyth at redhat1.isis.vanderbilt.edu
ksmyth at redhat1.isis.vanderbilt.edu
Wed Oct 3 09:39:59 CDT 2012
Author: ksmyth
Date: Wed Oct 3 09:39:58 2012
New Revision: 4115
Log:
Fix refport crash, e.g. with UdmCopy CyPhyML
Modified:
UDM/trunk/src/UdmGme/UdmGme.cpp
Modified: UDM/trunk/src/UdmGme/UdmGme.cpp
==============================================================================
--- UDM/trunk/src/UdmGme/UdmGme.cpp Wed Oct 3 09:39:49 2012 (r4114)
+++ UDM/trunk/src/UdmGme/UdmGme.cpp Wed Oct 3 09:39:58 2012 (r4115)
@@ -567,6 +567,10 @@
HRESULT (__stdcall IMgaSimpleConnection::*fn)(IMgaFCOs**);
if (!src_role_name) {
SmartBSTR dst_role_name = conn->RegistryValue["dRefParent"];
+ if (!dst_role_name)
+ {
+ return ret;
+ }
fn = role_name.compare(dst_role_name) == 0 ? &IMgaSimpleConnection::get_DstReferences : &IMgaSimpleConnection::get_SrcReferences;
} else {
fn = role_name.compare(src_role_name) == 0 ? &IMgaSimpleConnection::get_SrcReferences : &IMgaSimpleConnection::get_DstReferences;
More information about the Mobies-commit
mailing list