Permalink
Browse files

fixed a NULL reference when specifying a non-existent language.

  • Loading branch information...
1 parent 7bb7306 commit cc304258da94853b585fd9f352a1cf7d07f8ea5f @henritersteeg committed Jan 13, 2010
@@ -27,7 +27,7 @@ public static class NaturalLanguageFactory
public static NaturalLanguage GetLanguage(string key)
{
var languageText = NaturalLanguageText.GetTextFor(key);
- return languageText == null ? null : new NaturalLanguage(languageText);
+ return languageText == null ? DEFAULT_LANGUAGE : new NaturalLanguage(languageText);
}
}
}
View
@@ -1,14 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
- <Product Id="*" Name="Cucumber Language Service (VS 2008) v0.1.0" Language="1033" Version="0.1.0" Manufacturer="Henri ter Steeg" UpgradeCode="4A263005-A34C-4410-8B39-A82D08D7A0A9">
+ <Product Id="*" Name="Cucumber Language Service (VS 2008) v0.1.1" Language="1033" Version="0.1.1" Manufacturer="Henri ter Steeg" UpgradeCode="4A263005-A34C-4410-8B39-A82D08D7A0A9">
<Package InstallerVersion="200" Compressed="yes" />
<Media Id="1" Cabinet="data.cab" EmbedCab="yes" />
<!-- Upgrade support -->
<Property Id="PREVIOUSVERSIONSINSTALLED" Secure="yes" />
<Upgrade Id="4A263005-A34C-4410-8B39-A82D08D7A0A9">
- <UpgradeVersion Minimum="0.0.0" Maximum="0.1.0" Property="PREVIOUSVERSIONSINSTALLED" IncludeMinimum="yes" IncludeMaximum="no" />
+ <UpgradeVersion Minimum="0.0.0" Maximum="0.1.1" Property="PREVIOUSVERSIONSINSTALLED" IncludeMinimum="yes" IncludeMaximum="no" />
</Upgrade>
<!-- end upgrade support -->

0 comments on commit cc30425

Please sign in to comment.