Commits

Anonymous committed 080a080

contextmenu1: catch Exception thrown by Style property on its own block

Comments (0)

Files changed (1)

framework/source/fwe/helper/actiontriggerhelper.cxx

 	{
 		a = xActionTriggerPropertySet->getPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM( "HelpURL" )) );
 		a >>= aHelpURL;
-
-        xActionTriggerPropertySet->getPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM( "Style" )) ) >>= nStyle;
 	}
 	catch ( Exception& )
 	{
 	}
+
+    try
+    {
+        xActionTriggerPropertySet->getPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM( "Style" )) ) >>= nStyle;
+    }
+    catch ( Exception& )
+    {
+    }
 }
 
 void InsertSubMenuItems( Menu* pSubMenu, sal_uInt16& nItemId, Reference< XIndexContainer > xActionTriggerContainer )