anandnet / flutter_video_info

A flutter plugin to get basic metadatainfo of a video file.
https://pub.dev/packages/flutter_video_info
MIT License
9 stars 25 forks source link

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

Open shofizone opened 3 years ago

shofizone commented 3 years ago

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 commented 2 years ago

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