Skip to content

Commit

Permalink
Use equals() instead of == for resolveSymbol
Browse files Browse the repository at this point in the history
Signed-off-by: Stuart Halloway <stu@cognitect.com>
  • Loading branch information
kunstmusik authored and stuarthalloway committed May 12, 2015
1 parent 4964194 commit 4fc6831
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jvm/clojure/lang/Compiler.java
Expand Up @@ -368,7 +368,7 @@ static Symbol resolveSymbol(Symbol sym){
if(sym.ns != null)
{
Namespace ns = namespaceFor(sym);
if(ns == null || ns.name.name == sym.ns)
if(ns == null || (ns.name.name == null ? sym.ns == null : ns.name.name.equals(sym.ns)))
return sym;
return Symbol.intern(ns.name.name, sym.name);
}
Expand Down

0 comments on commit 4fc6831

Please sign in to comment.