msmobility / silo

SILO Model Java Code
GNU General Public License v2.0
18 stars 26 forks source link

ConstructionModel Crashes #178

Closed nkuehnel closed 5 years ago

nkuehnel commented 5 years ago

since 0fefd7d1a51246a700992778d6768c8b1923a889

When unrealized dwellings have to be reallocated to a new zone, it's possible that zone id -1 is returned, https://github.com/msmobility/silo/blob/0379de50b226749a758780c4dd9f54f7d24c4127/useCases/maryland/src/main/java/de/tum/bgu/msm/models/ConstructionModelMstm.java#L243-L245

resulting in ArrayIndexOutOfBoundsException when looking up the average price of that zone for the creation of the dwelling. https://github.com/msmobility/silo/blob/0379de50b226749a758780c4dd9f54f7d24c4127/useCases/maryland/src/main/java/de/tum/bgu/msm/models/ConstructionModelMstm.java#L192-L193