twitter / hbc

A Java HTTP client for consuming Twitter's realtime Streaming API
https://developer.twitter.com/en/docs/tweets/filter-realtime/overview
Apache License 2.0
962 stars 373 forks source link

Missing Check against Null #199

Closed QiAnXinCodeSafe closed 2 years ago

QiAnXinCodeSafe commented 4 years ago

https://github.com/twitter/hbc/blob/b3c73e607b42ee43193419f00d005288832f0fc1/hbc-core/src/main/java/com/twitter/hbc/ClientBuilder.java#L67 The program can dereference a null-pointer because it does not check the return value of a function that might return null.