MatteoBattilana / WeatherView

WeatherView is an Android Library let you make cool weather animations for your app
Apache License 2.0
506 stars 81 forks source link

Fix setFPS NullPointerException #3

Closed 2ma closed 7 years ago

2ma commented 7 years ago

Moved mParticleSystem.setFPS(getFPS()); into the null check, because if WeatherView is used with SUN option first, mParticleSystem is null, and mParticleSystem.setFPS(getFPS()); gives a NullPointerException.

MatteoBattilana commented 7 years ago

Really thanks, I've checked the issue and your solution is perfect.

MatteoBattilana commented 7 years ago

I've uploaded a new release (1.1.1) with the bugfix.

dependencies { compile 'com.github.MatteoBattilana:WeatherView:1.1.1' }

2ma commented 7 years ago

Thank you! It's a cool library :)