gaiaresources / ala-citizenscience

Automatically exported from code.google.com/p/ala-citizenscience
1 stars 4 forks source link

Map Layer unsafe hashCode methods (also causing broken survey maps page in UAT) #269

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
BaseMapLayer & GeoMapLayer expect the survey to be not null when calculating 
the hashCode.
It is possible to create a BaseMapLayer and GeoMapLayer with a null survey (in 
fact the SurveyBaseController does so which can cause the page rendering to 
fail half way through on the survey map page).

Also the BaseMapLayer uses extra fields in the equals method than the hashCode 
method which is not ideal.

Original issue reported on code.google.com by chris.go...@gmail.com on 24 May 2012 at 6:43