okleine / nCoAP

Java implementation of the CoAP protocol using netty
BSD 3-Clause "New" or "Revised" License
179 stars 57 forks source link

OptionRegistry.getAllowedOccurence() can return null #2

Closed stefanhueske closed 12 years ago

stefanhueske commented 12 years ago
OptionOccurence result = allowedOptions.get(code).get(opt_name);

result will be null if code exists, but opt_name not.

(note: I fixed this issue in my fork cb8fcc25011e6fe88888f27b93e5f141c8e9c6fc)