Skip to content

Commit

Permalink
2001-09-17 Miguel de Icaza <miguel@ximian.com>
Browse files Browse the repository at this point in the history
	* rootcontext.cs: Fix bug: tree.Namespaces might be null.

svn path=/trunk/mcs/; revision=839
  • Loading branch information
migueldeicaza committed Sep 17, 2001
1 parent dac6469 commit b3b3db1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
4 changes: 4 additions & 0 deletions mcs/mcs/ChangeLog
@@ -1,3 +1,7 @@
2001-09-17 Miguel de Icaza <miguel@ximian.com>

* rootcontext.cs: Fix bug: tree.Namespaces might be null.

2001-09-16 Ravi Pratap <ravi@ximian.com>

* class.cs (EmitStaticFieldInitializers, EmitFieldInitializers): Make public.
Expand Down
17 changes: 11 additions & 6 deletions mcs/mcs/rootcontext.cs
Expand Up @@ -565,13 +565,18 @@ public Type LookupType (TypeContainer tc, string name)

public bool IsNamespace (string name)
{
Namespace ns = (Namespace) tree.Namespaces [name];
Namespace ns;

if (ns != null)
return true;
else
return false;

if (tree.Namespaces){
ns = (Namespace) tree.Namespaces [name];

if (ns != null)
return true;
else
return false;
}

return false;
}

// <summary>
Expand Down

0 comments on commit b3b3db1

Please sign in to comment.