Skip to content
Snippets Groups Projects
Commit 8effe077 authored by stepan's avatar stepan
Browse files

Fix RRuntime#asString handles RAbtractStringVector not only RStringVector

parent 41885389
No related branches found
No related tags found
No related merge requests found
......@@ -861,8 +861,8 @@ public class RRuntime {
public static String asString(Object obj) {
if (obj instanceof String) {
return (String) obj;
} else if (obj instanceof RStringVector) {
return ((RStringVector) obj).getDataAt(0);
} else if (obj instanceof RAbstractStringVector) {
return ((RAbstractStringVector) obj).getDataAt(0);
} else {
return null;
}
......
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