Skip to content
Snippets Groups Projects
Commit 5ccfa600 authored by Leroy Ruegemer's avatar Leroy Ruegemer
Browse files

fixed nullptr triggered by default node factory

parent c8606950
No related branches found
No related tags found
No related merge requests found
...@@ -21,6 +21,7 @@ import org.ros.internal.node.DefaultNode; ...@@ -21,6 +21,7 @@ import org.ros.internal.node.DefaultNode;
import org.ros.concurrent.SharedScheduledExecutorService; import org.ros.concurrent.SharedScheduledExecutorService;
import java.util.Collection; import java.util.Collection;
import java.util.LinkedList;
import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.ScheduledExecutorService;
/** /**
...@@ -43,6 +44,6 @@ public class DefaultNodeFactory implements NodeFactory { ...@@ -43,6 +44,6 @@ public class DefaultNodeFactory implements NodeFactory {
@Override @Override
public Node newNode(NodeConfiguration nodeConfiguration) { public Node newNode(NodeConfiguration nodeConfiguration) {
return newNode(nodeConfiguration, null); return newNode(nodeConfiguration, new LinkedList<NodeListener>());
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment