Skip to content
Snippets Groups Projects
Commit 6cb5a479 authored by Brutzman, Don's avatar Brutzman, Don
Browse files

include diagnostic message for UnsupportedComponentException

parent 5c35610a
No related branches found
No related tags found
No related merge requests found
......@@ -483,7 +483,11 @@ public class DefaultNodeFactory
ComponentInfo ret_val = findComponent(name, level);
if(ret_val == null)
{
System.err.println ("[Xj3D DefaultNodeFactory.addComponent] Exception, not finding component name=" + name +
", level=" + level);
throw new UnsupportedComponentException();
}
// Reupdate the latest versions just in case another thread changed
// them while we were not looking.
......@@ -732,7 +736,9 @@ public class DefaultNodeFactory
}
VRMLNode ret_val = null;
String node_name = node.getVRMLNodeName();
String node_name = new String();
if (node != null)
node_name = node.getVRMLNodeName();
ComponentInfo ci = nodeNameComponentMap.get(node_name);
......
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