Checks if NetObj exists to prevent nullPointerException.
When the NetObject doesn't exist, a message is written to stderr.