Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Android : Attempt to invoke virtual method

: Attempt to invoke virtual method 'android.view.SurfaceHolder com.longtailvideo.jwplayer.c.l.getHolder()' on a null object reference
at com.longtailvideo.jwplayer.c.d$

---This Error rare case i cant reproduce

3 Community Answers


JW Player Support Agent  
0 rated :


This seems to be a crash from an older version of the Android SDK. This was fixed in v2.1


0 rated :

Hi George,

We are using Android SDK Version 2.5.3+164 (jwplayer-android-sdk). We still facing this issue. Can you please help us on this issue ? Is this issue again got re-open in 2.5.3 ?



JW Player Support Agent  
0 rated :

Hello Anbu,

Please email

For me to reproduce this issue reliably I will need this information about your application:

Android API Build level (16,17… 22):
JW Player SDK for Android version number:
Device make and model where you are experiencing this issue:
Provide step by step instructions on how to reproduce your issue:
JW Player Demo Application Source Code that is also experiencing the issue:

As the last field suggests, please replicate this issue using the JW Player Demo Application and send us a link to a zipped version of the entire Android Studio Project for testing which can be found here:

This question has received the maximum number of answers.