browserstack / browserstack-local-java

Java bindings for BrowserStack Local
https://www.browserstack.com
MIT License
18 stars 33 forks source link

NPE when calling Local.stop() without providing BrowserStack key #35

Open rlundy opened 5 years ago

rlundy commented 5 years ago

When Local.stop() is called without having provided the BrowserStack key in the options, a NullPointerException results.

Expected Behavior

While I can see a case for requiring the BrowserStack key when stopping a BrowserStack instance (but only if it's actually used), if it is required but not provided, then a meaningful error message should be provided rather than a NPE with no message.

Actual Behavior

A NullPointerException is thrown, and there's no exception message.

bipul21 commented 5 years ago

Noted we will fix the same and release new version soon.