Skip to content
This repository was archived by the owner on Aug 11, 2023. It is now read-only.

Commit 13f4760

Browse files
authored
Merge pull request #248 from Intermodalics/fix/remapping_arguments_not_set_in_native_node
Fix remapping member variable not set if argument is not null
2 parents 46a9300 + 4c3e048 commit 13f4760

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rosjava/src/main/java/org/ros/node/NativeNodeMain.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ public NativeNodeMain(String libName, String[] remappings) {
5353
// if no remapping is needed, create an empty array
5454
if (remappings == null) {
5555
remappingArguments = new String[0];
56+
} else {
57+
remappingArguments = remappings;
5658
}
5759

5860
log.info("Trying to load native library '" + libName + "'...");

0 commit comments

Comments
 (0)