elimu-ai / ml-authentication

😶‍🌫️ Android application for authenticating the current student using face recognition
MIT License
16 stars 16 forks source link

trainClassifier should only calculate the meanFeatureVector for a StudentImageCollectionEvent if all features have been extracted for all StudentImages #321

Closed sladomic closed 7 years ago

sladomic commented 7 years ago

Description:

Expected Result:

Actual Result:

Log:

01-02 14:24:53.470 20010-20189/org.literacyapp E/AndroidRuntime: FATAL EXCEPTION: Thread-162
                                                                 Process: org.literacyapp, PID: 20010
                                                                 Theme: themes:{}
                                                                 java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String org.literacyapp.model.StudentImageFeature.getFeatureVector()' on a null object reference
                                                                     at org.literacyapp.authentication.thread.TrainingThread.trainClassifier(TrainingThread.java:239)
                                                                     at org.literacyapp.authentication.thread.TrainingThread.run(TrainingThread.java:71)