Skip to content

Commit

Permalink
Added step to convert a null type name to an empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
sanmadjack committed Sep 7, 2012
1 parent d22fbeb commit b19dc2c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions GameVersion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ public void addContributor(string name) {
}
}
public FileType addFileType(string name) {
if (name == null)
name = "";
if(!this.FileTypes.ContainsKey(name)) {
FileType type = new FileType(this, name);
this.FileTypes.Add(name, type);
Expand Down

0 comments on commit b19dc2c

Please sign in to comment.