-
Notifications
You must be signed in to change notification settings - Fork 26
java.util.List.iterator()' on a null object reference #28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
First check if strings array has length more than 0 in this case because
the exception you've got may be invoked by the empty array.
…On Fri, Jun 5, 2020, 9:24 PM niteshfel ***@***.***> wrote:
java.lang.NullPointerException: Attempt to invoke interface method
'java.util.Iterator java.util.List.iterator()' on a null object reference
found exception when called
videoData = youtubeJExtractor.extract(strings[0]);
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#28>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACGWKBIRRG4D3ACM4WKTBMLRVEZ6PANCNFSM4NUWA46A>
.
|
no . strings[0] have values then this error occur |
Please, provide the whole stacktrace then
…On Sat, Jun 6, 2020, 12:51 PM niteshfel ***@***.***> wrote:
no . strings[0] have values then this error occur
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#28 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACGWKBIQZCBU6UPYMMK5SB3RVIGRBANCNFSM4NUWA46A>
.
|
An error occurred while executing doInBackground() stackTrace = {StackTraceElement[8]@13841} |
No, this will not help. Just make a screenshot of the stacktrace in
console. Is this error reproducible with any video or the specific ones?
…On Sat, Jun 6, 2020, 1:46 PM niteshfel ***@***.***> wrote:
An error occurred while executing doInBackground()
stackTrace = ***@***.***}
lineNumber = 1167
7 = ***@***.***} "java.lang.Thread.run(Thread.java:919)"
5 = ***@***.***}
"java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)"
shadow$*monitor* = 0
methodName = "run"
shadow$*monitor* = 0
lineNumber = 641
1 = ***@***.***}
"java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:383)"
fileName = "FutureTask.java"
shadow$*monitor* = 0
shadow$*monitor* = 0
6 = ***@***.***}
"java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)"
shadow$*klass* = ***@***.***} "class java.lang.StackTraceElement"
fileName = "FutureTask.java"
3 = ***@***.***}
"java.util.concurrent.FutureTask.run(FutureTask.java:271)"
methodName = "run"
fileName = "ThreadPoolExecutor.java"
declaringClass = "android.os.AsyncTask$SerialExecutor$1"
methodName = "setException"
4 = ***@***.***}
"android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:289)"
shadow$*klass* = ***@***.***} "class java.lang.StackTraceElement"
lineNumber = 383
shadow$*klass* = ***@***.***} "class java.lang.StackTraceElement"
declaringClass = "android.os.AsyncTask$4"
shadow$*klass* = ***@***.***} "class java.lang.StackTraceElement"
fileName = "Thread.java"
methodName = "run"
shadow$*monitor* = 0
declaringClass = "java.util.concurrent.ThreadPoolExecutor"
declaringClass = "java.util.concurrent.FutureTask"
shadow$*monitor* = 0
shadow$*klass* = ***@***.***} "class java.lang.StackTraceElement"
fileName = "AsyncTask.java"
shadow$*klass* = ***@***.***} "class java.lang.StackTraceElement"
lineNumber = 399
lineNumber = 252
shadow$*monitor* = 0
2 = ***@***.***}
"java.util.concurrent.FutureTask.setException(FutureTask.java:252)"
declaringClass = "java.lang.Thread"
lineNumber = 271
methodName = "runWorker"
fileName = "ThreadPoolExecutor.java"
methodName = "finishCompletion"
fileName = "FutureTask.java"
shadow$*klass* = ***@***.***} "class java.lang.StackTraceElement"
declaringClass = "java.util.concurrent.FutureTask"
methodName = "run"
declaringClass = "java.util.concurrent.ThreadPoolExecutor$Worker"
0 = ***@***.***}
"android.os.AsyncTask$4.done(AsyncTask.java:399)"
methodName = "done"
declaringClass = "java.util.concurrent.FutureTask"
lineNumber = 919
shadow$*monitor* = 0
fileName = "AsyncTask.java"
shadow$*klass* = ***@***.***} "class java.lang.StackTraceElement"
lineNumber = 289
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#28 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACGWKBIK6WCZ5IPW7QJEMM3RVIM7HANCNFSM4NUWA46A>
.
|
@niteshfel I found what the problem is, I'll fix it ASAP. |
#28 Fix NPE, implement new callback based extract function
@niteshfel fixed, check 0.3.0 version btw, thanks for the issues you're posting, it helps to improve the library a lot! |
Your welcome man ! |
Uh oh!
There was an error while loading. Please reload this page.
java.lang.NullPointerException: Attempt to invoke interface method 'java.util.Iterator java.util.List.iterator()' on a null object reference
found exception when called
videoData = youtubeJExtractor.extract(strings[0]);
you can check this url for extract : https://www.youtube.com/watch?v=w2iqOwRvaFY
The text was updated successfully, but these errors were encountered: