[commit] r2434 - trunk/GME/ConstraintManager

GMESRC Repository Notifications gme-commit at list.isis.vanderbilt.edu
Tue Feb 18 16:29:11 CST 2014


Author: ksmyth
Date: Tue Feb 18 16:29:11 2014
New Revision: 2434

Log:
Avoid needless exceptions (debugging convenience)

Modified:
   trunk/GME/ConstraintManager/GMEViolationDialog.cpp

Modified: trunk/GME/ConstraintManager/GMEViolationDialog.cpp
==============================================================================
--- trunk/GME/ConstraintManager/GMEViolationDialog.cpp	Tue Feb 18 16:29:02 2014	(r2433)
+++ trunk/GME/ConstraintManager/GMEViolationDialog.cpp	Tue Feb 18 16:29:11 2014	(r2434)
@@ -42,7 +42,9 @@
 	{	
 		CComBSTR app(L"GME.Application");
 		CComPtr<IMgaClient> client;
-		COMTHROW(m_spProject->GetClientByName((BSTR)app, &client));
+		HRESULT hr = m_spProject->GetClientByName((BSTR)app, &client);
+		if (FAILED(hr))
+			return;
 
 		CComPtr<IDispatch> gui;
 		COMTHROW(client->get_OLEServer(&gui));


More information about the gme-commit mailing list