Skip to content
Snippets Groups Projects
Commit e9a4a41c authored by Mick Jordan's avatar Mick Jordan
Browse files

add assert to ENCLOS result

parent 696569c7
No related branches found
No related tags found
No related merge requests found
......@@ -852,8 +852,11 @@ public class CallRFFIHelper {
}
public static Object ENCLOS(Object x) {
RFFIUtils.traceUpCall("ENCLOS", x);
REnvironment env = guaranteeInstanceOf(x, REnvironment.class);
return env.getParent();
REnvironment result = env.getParent();
assert result != null;
return result;
}
@SuppressWarnings("unused")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment