Skip to content

Commit 283e60c

Browse files
author
furmangg
committed
fixing object reference error mentioned in issue #64
1 parent 646bcef commit 283e60c

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

SSIS/DeployPackagesPlugin.cs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,9 +509,19 @@ private void cmdButtonProperties_Click(CommandBarButton Ctrl, ref bool CancelDef
509509

510510
Microsoft.DataWarehouse.VsIntegration.Shell.Project.Extensibility.ProjectExt proj = GetSelectedProjectReference();
511511

512-
if (proj == null || proj.Kind != BIDSProjectKinds.SSIS) return;
512+
if (proj == null || proj.Kind != BIDSProjectKinds.SSIS)
513+
{
514+
CancelDefault = false; //let the Microsoft code fire
515+
return;
516+
}
513517

514518
sharedDataWarehouseInterfaces::Microsoft.DataWarehouse.Interfaces.IConfigurationSettings settings = (sharedDataWarehouseInterfaces::Microsoft.DataWarehouse.Interfaces.IConfigurationSettings)((System.IServiceProvider)proj).GetService(typeof(sharedDataWarehouseInterfaces::Microsoft.DataWarehouse.Interfaces.IConfigurationSettings));
519+
if (settings == null)
520+
{
521+
CancelDefault = false; //let the Microsoft code fire
522+
return;
523+
}
524+
515525
projectManager = (Microsoft.DataWarehouse.Project.DataWarehouseProjectManager)settings.GetType().InvokeMember("ProjectManager", System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.GetProperty | System.Reflection.BindingFlags.FlattenHierarchy, null, settings, null);
516526

517527
if (!IsLegacyDeploymentMode(projectManager))

0 commit comments

Comments
 (0)