1.1 --- a/Hardware/Mainboard/Mainboard.cs Thu Aug 12 20:53:27 2010 +0000
1.2 +++ b/Hardware/Mainboard/Mainboard.cs Sun Aug 15 14:46:58 2010 +0000
1.3 @@ -53,8 +53,7 @@
1.4 this.smbios = new SMBIOS();
1.5
1.6 if (smbios.Board != null) {
1.7 - if (smbios.Board.ProductName != null
1.8 - && smbios.Board.ProductName != "") {
1.9 + if (!string.IsNullOrEmpty(smbios.Board.ProductName)) {
1.10 if (smbios.Board.Manufacturer == Manufacturer.Unknown)
1.11 this.name = smbios.Board.ProductName;
1.12 else
1.13 @@ -131,8 +130,9 @@
1.14 #pragma warning restore 67
1.15
1.16 public void Accept(IVisitor visitor) {
1.17 - if (visitor != null)
1.18 - visitor.VisitHardware(this);
1.19 + if (visitor == null)
1.20 + throw new ArgumentNullException("visitor");
1.21 + visitor.VisitHardware(this);
1.22 }
1.23
1.24 public void Traverse(IVisitor visitor) {