Skip to content
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

Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference #15

Open
shofizone opened this issue Apr 22, 2021 · 1 comment

Comments

@shofizone
Copy link

This error show in the console whenever I try to get info for an Flv video.

java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference
W/System.err(32293): 	at java.text.SimpleDateFormat.parseInternal(SimpleDateFormat.java:1540)
W/System.err(32293): 	at java.text.SimpleDateFormat.parse(SimpleDateFormat.java:1528)
W/System.err(32293): 	at java.text.DateFormat.parse(DateFormat.java:360)
W/System.err(32293): 	at com.example.flutter_video_info.FlutterVideoInfoPlugin.getVidInfo(FlutterVideoInfoPlugin.java:72)
W/System.err(32293): 	at com.example.flutter_video_info.FlutterVideoInfoPlugin.onMethodCall(FlutterVideoInfoPlugin.java:49)
W/System.err(32293): 	at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:233)
W/System.err(32293): 	at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:85)
W/System.err(32293): 	at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:818)
W/System.err(32293): 	at android.os.MessageQueue.nativePollOnce(Native Method)
W/System.err(32293): 	at android.os.MessageQueue.next(MessageQueue.java:331)
W/System.err(32293): 	at android.os.Looper.loop(Looper.java:149)
W/System.err(32293): 	at android.app.ActivityThread.main(ActivityThread.java:6651)
W/System.err(32293): 	at java.lang.reflect.Method.invoke(Native Method)
W/System.err(32293): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
W/System.err(32293): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:824)
@wilfredonoyola
Copy link

I found the same error with FLV extension. Hey, @shofizone Do you have a solution so far?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants