Hardware/Hardware.cs
changeset 166 fa9dfbfc4145
parent 165 813d8bc3192f
child 167 b7cc9d09aefe
     1.1 --- a/Hardware/Hardware.cs	Sun Aug 08 13:57:26 2010 +0000
     1.2 +++ b/Hardware/Hardware.cs	Thu Aug 12 20:53:27 2010 +0000
     1.3 @@ -80,7 +80,8 @@
     1.4      public abstract void Update();
     1.5  
     1.6      public void Accept(IVisitor visitor) {
     1.7 -      visitor.VisitHardware(this);
     1.8 +      if (visitor != null)
     1.9 +        visitor.VisitHardware(this);
    1.10      }
    1.11  
    1.12      public void Traverse(IVisitor visitor) {