Bug 278

Summary: No "invalid input" message in list facilities service input interface
Product: Group 9: Route Planning Reporter: CherineLee <shiyingli7-c>
Component: InterfaceAssignee: zhanjiang2-c
Status: RESOLVED FIXED    
Severity: major CC: zhanjiang2-c, zixuan.huang
Priority: Normal    
Version: 1.0   
Hardware: PC   
OS: Mac OS   

Description CherineLee 2018-12-08 11:32:35 HKT
Step to reproduce:
1. Run the program. In the "Route Planning System" menu, input 2 to choose "Get facility info". Then in the "Get facility info" menu, input 2 to choose "See available facilities".
2. For "Please enter station name:", input Sha tin. Note that Sha tin is not a valid station name.

Expected output: an error message of "invalid output".
Actual output: Exception: java.lang.NullPointerException
Comment 1 zhanjiang2-c 2018-12-08 16:08:56 HKT
Fixed. I have added an additional error catcher that explicitly catches the NullPointerException caused by search an invalid station name. Other type of exceptions will still be caught by the original catcher.