Skip to content
Snippets Groups Projects
Commit 81e2dfe0 authored by Lukas Stadler's avatar Lukas Stadler
Browse files

optimization for NULL in IsNamespaceEnv

parent b27bd618
Branches
No related tags found
No related merge requests found
......@@ -88,6 +88,11 @@ public class NamespaceFunctions {
protected byte doIsNamespaceEnv(REnvironment env) {
return RRuntime.asLogical(env.isNamespaceEnv());
}
@Specialization
protected byte doIsNamespaceEnv(RNull env) {
return RRuntime.LOGICAL_FALSE;
}
}
@RBuiltin(name = "getNamespaceRegistry", kind = INTERNAL, parameterNames = {})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment