Fix problems with overlong directory names: phase #1
[mono.git] / mcs / class / System / System.CodeDom / CodeVariableReferenceExpression.cs
index d0754066ca0317ca8bfde2f9c4e85b47e9b94174..9b4a27b0835fb83a48a8e70f428aa96ac6b4e8f1 100644 (file)
@@ -5,8 +5,7 @@
 //   Daniel Stodden (stodden@in.tum.de)
 //
 // (C) 2001 Ximian, Inc.
-//
-
+// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
@@ -57,6 +56,9 @@ namespace System.CodeDom
                //
                public string VariableName {
                        get {
+                               if (variableName == null) {
+                                       return string.Empty;
+                               }
                                return variableName;
                        }
                        set {