Skip to content

Commit

Permalink
Fix null reference exception
Browse files Browse the repository at this point in the history
  • Loading branch information
pepone committed Mar 1, 2016
1 parent fef6bf6 commit ee94988
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 12 deletions.
2 changes: 1 addition & 1 deletion AddinRemoval/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
[assembly: AssemblyCompany("ZeroC, Inc.")]
[assembly: AssemblyProduct("Ice Visual Studio Extension")]
[assembly: AssemblyCopyright("Copyright (c) 2009-2016 ZeroC, Inc.")]
[assembly: AssemblyVersion("4.2.0")]
[assembly: AssemblyVersion("4.2.1")]
[assembly: AssemblyDelaySign(false)]
9 changes: 7 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
## Changes in Ice Builder for Visual Studio 4.2.1

- Fixed an issue that could cause a null pointer exception when
reading the extension settings.

## Changes in Ice Builder for Visual Studio 4.2.0

- Added support for building the Ice 3.7 source distribution.
- Added support for building the Ice 3.7 source distribution.

- Starting with this release, when the Output Directory for a C++ project contains a
MSBuild property that expands to different values for each configuration, the
Expand All @@ -17,7 +22,7 @@
Automatic Slice file compilation is disabled by default, which speeds up
the loading of solutions with many projects.

- Visual Studio 2015 is now required to build the Ice Builder, but the resulting
- Visual Studio 2015 is now required to build the Ice Builder, but the resulting
extension remain usable with Visual Studio 2012 and Visual Studio 2013.

## Changes in Ice Builder for Visual Studio 4.1.2
Expand Down
10 changes: 9 additions & 1 deletion IceBuilder/Package.cs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,15 @@ public void SetAutoBuilding(bool value)

private bool GetAutoBuilding()
{
return 1 == (int)Microsoft.Win32.Registry.GetValue(IceHomeKey, IceAutoBuilding, 0);
try
{
return 1 == (int)Microsoft.Win32.Registry.GetValue(IceHomeKey, IceAutoBuilding, 0);
}
catch(System.NullReferenceException)
{
// Key doesn't exists use the default value
return false;
}
}
public Guid OutputPaneGUID = new Guid("CE9BFDCD-5AFD-4A77-BD40-75E0E1E5162C");

Expand Down
2 changes: 1 addition & 1 deletion IceBuilder/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
[assembly: AssemblyCompany("ZeroC, Inc.")]
[assembly: AssemblyProduct("Ice Builder")]
[assembly: AssemblyCopyright("Copyright (c) 2009-2016 ZeroC, Inc.")]
[assembly: AssemblyVersion("4.2.0")]
[assembly: AssemblyVersion("4.2.1")]
[assembly: ComVisibleAttribute(false)]
4 changes: 2 additions & 2 deletions IceBuilder/source.extension.vsixmanifest
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
<Metadata>
<Identity Id="ef9502be-dbc2-4568-a846-02b8e42d04c2" Version="4.2.0" Language="en-US" Publisher="ZeroC" />
<Identity Id="ef9502be-dbc2-4568-a846-02b8e42d04c2" Version="4.2.1" Language="en-US" Publisher="ZeroC" />
<DisplayName>Ice Builder</DisplayName>
<Description xml:space="preserve">Ice Builder manages the compilation of Slice (.ice) files to C++ and C#. It compiles your Slice files with slice2cpp and slice2cs, and allows you to specify the parameters provided to these compilers.</Description>
<MoreInfo>https://github.com/zeroc-ice/ice-builder-visualstudio</MoreInfo>
Expand All @@ -11,7 +11,7 @@
<Tags>ZeroC, Ice, Slice</Tags>
</Metadata>
<Installation>
<InstallationTarget Version="[11.0, 14.0]" Id="Microsoft.VisualStudio.Pro" />
<InstallationTarget Version="[11.0,]" Id="Microsoft.VisualStudio.Pro" />
</Installation>
<Dependencies>
<Dependency Id="Microsoft.Framework.NDP" DisplayName="Microsoft .NET Framework" d:Source="Manual" Version="[4.5, 5.0]" />
Expand Down
2 changes: 1 addition & 1 deletion IceBuilderTasks/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
[assembly: AssemblyCompany("ZeroC, Inc.")]
[assembly: AssemblyProduct("Ice Builder")]
[assembly: AssemblyCopyright("Copyright (c) 2009-2016 ZeroC, Inc.")]
[assembly: AssemblyVersion("4.2.0")]
[assembly: AssemblyVersion("4.2.1")]
[assembly: AssemblyDelaySign(false)]
[assembly: ComVisibleAttribute(false)]
2 changes: 1 addition & 1 deletion IceBuilder_Common/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
[assembly: AssemblyCompany("ZeroC, Inc.")]
[assembly: AssemblyProduct("Ice Builder")]
[assembly: AssemblyCopyright("Copyright (c) 2009-2016 ZeroC, Inc.")]
[assembly: AssemblyVersion("4.2.0")]
[assembly: AssemblyVersion("4.2.1")]
[assembly: ComVisibleAttribute(false)]
2 changes: 1 addition & 1 deletion IceBuilder_VS2012/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
[assembly: AssemblyCompany("ZeroC, Inc.")]
[assembly: AssemblyProduct("Ice Builder")]
[assembly: AssemblyCopyright("Copyright (c) 2009-2016 ZeroC, Inc.")]
[assembly: AssemblyVersion("4.2.0")]
[assembly: AssemblyVersion("4.2.1")]
[assembly: ComVisibleAttribute(false)]
2 changes: 1 addition & 1 deletion IceBuilder_VS2013/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
[assembly: AssemblyCompany("ZeroC, Inc.")]
[assembly: AssemblyProduct("Ice Builder")]
[assembly: AssemblyCopyright("Copyright (c) 2009-2016 ZeroC, Inc.")]
[assembly: AssemblyVersion("4.2.0")]
[assembly: AssemblyVersion("4.2.1")]
[assembly: ComVisibleAttribute(false)]
2 changes: 1 addition & 1 deletion IceBuilder_VS2015/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
[assembly: AssemblyCompany("ZeroC, Inc.")]
[assembly: AssemblyProduct("Ice Builder")]
[assembly: AssemblyCopyright("Copyright (c) 2009-2016 ZeroC, Inc.")]
[assembly: AssemblyVersion("4.2.0")]
[assembly: AssemblyVersion("4.2.1")]
[assembly: ComVisibleAttribute(false)]

0 comments on commit ee94988

Please sign in to comment.