Green-Light-Innovation / flight-booking-system

CMP5332 Flight Booking System Coursework Project
1 stars 0 forks source link

Unhandled Exception when parsing files #5

Closed Aduceus closed 1 year ago

Aduceus commented 1 year ago

When loading data from a file, if the file is corrupted or improperly formatted an unhandled ArrayIndexOutOfBoundsException is thrown Seen in: https://github.com/Green-Light-Innovation/flight-booking-system/blob/dc1fd8eccf0eab30edcef55347f2aa7b701b3acf/src/bcu/cmp5332/bookingsystem/data/CustomerDataManager.java#L52-L62

Other files NEED to be tested

Aduceus commented 1 year ago

Fixed in both CustomerDataManager and FlightDataManager https://github.com/Green-Light-Innovation/flight-booking-system/blob/0c0911621d45a11e8161b656b09057549ed20f8a/src/bcu/cmp5332/bookingsystem/data/CustomerDataManager.java#L46-L72