akoscz / YouTubePlaylist

A sample Android application which demonstrates the use of the YouTube Data v3 API.
Apache License 2.0
153 stars 84 forks source link

Getting run-time error #33

Closed behrouzbk closed 3 years ago

behrouzbk commented 5 years ago

I get the run-time error , please let me know how I can resolve it

E/AndroidRuntime: FATAL EXCEPTION: main Process: ca.genesissoft.tarlespeech, PID: 22458 java.lang.RuntimeException: Unable to start activity ComponentInfo(YoutubeActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.app.ProgressDialog.show()' on a null object reference at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416) .... .... I/Process: Sending signal. PID: 22458 SIG: 9 Application terminated.

akoscz commented 5 years ago

Sounds like there is a race condition with updating the progress dialog as a new page of video's are being loaded. I haven't been keeping the master branch up to date very much over the past couple of years. Give the dependecy-injection branch a try since that branch has been getting some periodical updates.

akoscz commented 3 years ago

Should be fixed in the most recent version of master