Skip to content

Commit

Permalink
Merge pull request Azure#1032 from tbombach/package_namespace_null
Browse files Browse the repository at this point in the history
Fix for a null reference exception when not providing namespace
  • Loading branch information
tbombach committed May 12, 2016
2 parents 38aa357 + fe3e5a4 commit 09ffae3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AutoRest/Generators/Java/Java/JavaCodeNamer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public JavaCodeNamer(string nameSpace)
{
// List retrieved from
// http://docs.oracle.com/javase/tutorial/java/nutsandbolts/_keywords.html
_package = nameSpace.ToLower(CultureInfo.InvariantCulture);
_package = nameSpace != null ? nameSpace.ToLower(CultureInfo.InvariantCulture) : string.Empty;
new HashSet<string>
{
"abstract", "assert", "boolean", "break", "byte",
Expand Down

0 comments on commit 09ffae3

Please sign in to comment.