Skip to content

Commit

Permalink
Fix for a null reference exception in JavaCodeNamer when the namespac…
Browse files Browse the repository at this point in the history
…e parameter is not provided as a command line parameter
  • Loading branch information
tbombach committed May 12, 2016
1 parent 38aa357 commit fe3e5a4
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 fe3e5a4

Please sign in to comment.