Open PsychicNoodles opened 10 years ago
Wow. Maybe there should be another key--it is theoretically possible for two rides to be the same, right? this might come up more if people make non-random generated rides, as they are considering in #33
On Wed, Oct 30, 2013 at 10:38 AM, PsychicNoodles notifications@github.comwrote:
The XYSeriesCollection dataset in the drawRideChart method of Park throws an IllegalArgumentException if multiple items in the series array have the same key (the same R:X.XXX:X:XXX key). It should be caught and the Ride reinitialized.
— Reply to this email directly or view it on GitHubhttps://github.com/cforster/theme-park-project/issues/54 .
The XYSeriesCollection
dataset
in thedrawRideChart
method ofPark
throws anIllegalArgumentException
if multiple items in theseries
array have the same key (the same R:X.XXX:X:XXX key). It should be caught before ticking and the Ride reinitialized.