| Summary: | [RecommendSys] java.lang.NullPointerException thrown when doing New Recommendation with invalid keyword | ||
|---|---|---|---|
| Product: | MovieXXX | Reporter: | tomfong521 |
| Component: | MovieAnalysisEngine | Assignee: | salinang3-c |
| Status: | RESOLVED FIXED | ||
| Severity: | blocker | ||
| Priority: | High | ||
| Version: | 2.0 | ||
| Hardware: | PC | ||
| OS: | Windows | ||
| Deadline: | 2018-11-24 | ||
|
Description
tomfong521
2018-11-30 00:44:22 HKT
Root cause - Checking for validation of input is missing in RecommendSys::doNewRecommendation() How to fix - Added RecommendSys::isOptValid() to check validation of input, terminate new recommendation and go back to [Film Recommendation] home if invalid Expected behavior - If input is invalid, accurate error message indicating violated input rule should be shown - After error message prompted, terminate new recommendation and go back to [Film Recommendation] home Potential affected areas - RecommendSys Affected versions - >=v3 Test cases 1. Enter "2" to select "Film Recommendation" in [System Home] 2. Enter "1" to select "Start New Recommendation" in [Office Box Prediction] 3. Enter invalid keyword (e.g. "-B salina") to process recommendation Test result - At testing step(3), error message "Invalid prefix (not exist): -B salina" is shown - After error message, new recommendation is terminated and go back to [Film Recommendation] home |