pieroxy / java-user-agent-detection

Some code to deduce an OS/Platform/Browser out of a user-agent string
53 stars 12 forks source link

Don't throw NullPointerException if input is null #21

Closed ceefour closed 7 years ago

ceefour commented 7 years ago

To make it easy to just pass whatever request.getHeader("User-Agent") returns.

pieroxy commented 7 years ago

Hello.

I am not sure I understand your issue. There is no notion of a request in the library. Could you detail a bit further the issue ?

ceefour commented 7 years ago

that was just an example, anyway just make sure that passing null is same as empty string

pieroxy commented 7 years ago

Ok, thanks. The code is in. Will be released along with the next release.