linuxxx / EasyPR_Android

EasyPR移植到Android版本
508 stars 251 forks source link

运行报错 #23

Open xfmax opened 8 years ago

xfmax commented 8 years ago

11-27 13:58:56.448 30018-30018/com.aiseminar.platerecognizer E/AndroidRuntime: FATAL EXCEPTION: main Process: com.aiseminar.platerecognizer, PID: 30018 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.aiseminar.platerecognizer/com.aiseminar.platerecognizer.ui.CameraActivity}: java.lang.NullPointerException: file == null at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476) at android.app.ActivityThread.-wrap11(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5417) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) Caused by: java.lang.NullPointerException: file == null at java.io.FileOutputStream.(FileOutputStream.java:84) at java.io.FileOutputStream.(FileOutputStream.java:72) at com.aiseminar.EasyPR.PlateRecognizer.checkAndUpdateModelFile(PlateRecognizer.java:59) at com.aiseminar.EasyPR.PlateRecognizer.(PlateRecognizer.java:31) at com.aiseminar.platerecognizer.ui.CameraActivity.onCreate(CameraActivity.java:77) at android.app.Activity.performCreate(Activity.java:6251) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)  at android.app.ActivityThread.-wrap11(ActivityThread.java)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)  at android.os.Handler.dispatchMessage(Handler.java:102)  at android.os.Looper.loop(Looper.java:148)  at android.app.ActivityThread.main(ActivityThread.java:5417)  at java.lang.reflect.Method.invoke(Native Method)  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)