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

NullPointerException during node shutdown #279

Description

@qswawrq

This is a question about #27. I saw the same exception during some normal shutdowns. Do we have a fix for that? Or we should simply ignore it and avoid catch this type of Exception during shutdown.

org.ros.exception.RosRuntimeException: java.lang.NullPointerException
	at org.ros.address.AdvertiseAddress.toString(AdvertiseAddress.java:123)
	at java.lang.String.valueOf(String.java:2994)
	at java.lang.StringBuilder.append(StringBuilder.java:131)
	at org.ros.address.AdvertiseAddress.toUri(AdvertiseAddress.java:109)
	at org.ros.internal.node.service.DefaultServiceServer.getUri(DefaultServiceServer.java:117)
	at org.ros.internal.node.client.MasterClient.unregisterService(MasterClient.java:91)
	at org.ros.internal.node.DefaultNode.shutdown(DefaultNode.java:424)
        ...
        at org.ros.internal.transport.queue.MessageDispatcher$1.run(MessageDispatcher.java:125)
	at org.ros.internal.transport.queue.MessageDispatcher$1.run(MessageDispatcher.java:122)
	at org.ros.concurrent.EventDispatcher.loop(EventDispatcher.java:43)
	at org.ros.concurrent.CancellableLoop.run(CancellableLoop.java:56)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
	at org.ros.internal.transport.tcp.TcpRosServer$1.call(TcpRosServer.java:91)
	at org.ros.internal.transport.tcp.TcpRosServer$1.call(TcpRosServer.java:88)
	at org.ros.address.AdvertiseAddress.toString(AdvertiseAddress.java:121)
	... 17 more

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions