sstrickx / yahoofinance-api

Java Client API for Yahoo Finance
MIT License
507 stars 222 forks source link

Fixes NPE when symbol is not upper case #110

Closed Hoffs closed 6 years ago

Hoffs commented 6 years ago

In YahooFinanceAPI on line 89 result is returned from a map by using a passed symbol. When that map is populated the symbol is used from returned data. So if I pass "googl", the map key will be "GOOGL". This means the map.get(symbol) returns a null if case is not correct. This behavior did not exist in older version (when passing "googl" it worked fine).