posicks / mdnsjava

Multicast DNS (mDNS) [RFC 6762] & DNS-Based Service Discovery (DNS-SD) [RFC6763] in Java
http://posicks.github.io/mdnsjava/
110 stars 43 forks source link

The name "CustomerInformationService._ibisip_http._tcp.local." throws a NullPointerException #5

Closed posicks closed 8 years ago

posicks commented 8 years ago

The name "CustomerInformationService._ibisip_http._tcp.local." throws a NullPointerException when used with the ServiceName.

posicks commented 8 years ago

The error above is due to an improperly formatted name and improper error handling in the ServiceName class. The ServiceName class will be modified to throw a format exception under such circumstances, providing a message that instructs the developer on how to format the name in compliance with RFC 6763 - DNS-based Service Discovery

posicks commented 8 years ago

Made the name formatting rules more forgiving