Skip to content
Snippets Groups Projects
Commit 7cbefa14 authored by Adam Welc's avatar Adam Welc
Browse files

Used more appropriate API call to retrive a path from source section.

parent b3762834
No related branches found
No related tags found
No related merge requests found
......@@ -1363,10 +1363,9 @@ public class CallRFFIHelper {
} else {
RFunction f = (RFunction) o;
SourceSection ss = f.getRootNode().getSourceSection();
String path = ss.getSource().getPath();
// TODO: is it correct to pass "" if path is null?
String path = RSource.getPath(ss.getSource());
// TODO: is it OK to pass "" if path is null?
return RSrcref.createLloc(ss, path == null ? "" : path);
}
}
......
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