Ville Saari Posted January 13, 2008 Share Posted January 13, 2008 This query: http://www.geocaching.com/seek/nearest.aspx?u=Teemu+Laitinen will only return the first page correctly. Clicking "Next" gives the following stack trace: System.NullReferenceException: Object reference not set to an instance of an object. at Geocaching.UI.geocaching_nearest.dlResults_ItemDataBound(Object sender, DataListItemEventArgs e) at System.Web.UI.WebControls.DataList.OnItemDataBound(DataListItemEventArgs e) at System.Web.UI.WebControls.DataList.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) at System.Web.UI.WebControls.DataList.CreateControlHierarchy(Boolean useDataSource) at System.Web.UI.WebControls.BaseDataList.OnDataBinding(EventArgs e) at System.Web.UI.WebControls.BaseDataList.DataBind() at Geocaching.UI.geocaching_nearest.ProcessResults(OriginWpt OriginWpt) at Geocaching.UI.geocaching_nearest.DisplayPageResultData() The result is repatably and consistently the same and doesn't seem to depend on the web browser or operating system used. I get the exact same result with Firefox 2.0.0.1 on Linux and Safari 2.0.4 on MacOS. It doesn't happen if I search for example caches by some other user. This particular example is the only case I have discovered so far that triggers this bug. Link to comment
+OH2TH Posted January 13, 2008 Share Posted January 13, 2008 (edited) I'm a premium member and I don't see this behaviour while logged in. When logged out, the same problem appears. It may be that non-premiums have the same problem? 73 de OH2TH // Tapio Edited January 13, 2008 by OH2TH Link to comment
Keystone Posted January 13, 2008 Share Posted January 13, 2008 The search worked fine for me using a Reviewer Account and a Premium Member Account. But I duplicated the error when going to page two of the search results using a Regular Account. Link to comment
Ville Saari Posted January 13, 2008 Author Share Posted January 13, 2008 I found more cases where the bug is triggered. It seems to depend on the number of caches on the last page of the search results. Whenever this number is 13 the bug appears, but only if there is advertisements within the search results (i.e. the page is retrieved anonymously or using a regular account). Link to comment
LQ Posted January 13, 2008 Share Posted January 13, 2008 Yes, this is easy to reproduce. For example: http://www.geocaching.com/seek/nearest.asp...7517&dist=3 Link to comment
Ville Saari Posted January 16, 2008 Author Share Posted January 16, 2008 My original example doesn't trigger the bug any more because that cacher has hidden more caches but the bug still exists. It appears whenever the number of results in a cache search satisfies the equation x mod 20 = 13 and the search is done using a regular account or not logged in. I.e. 13, 33, 53, 73... An easy way to get a specific number is to do a distance search and adjust the distance until the required number of caches fits in the circle. Link to comment
OpinioNate Posted January 16, 2008 Share Posted January 16, 2008 Are you sure this is still happening? Lq's link returns 13 caches for me but I do not see an error. Link to comment
LQ Posted January 17, 2008 Share Posted January 17, 2008 Are you sure this is still happening? Lq's link returns 13 caches for me but I do not see an error. Yes, it is most definitely happenig! As stated above, please try with either a regular (non premium) account or by not logging in at all. Seems to me that the most obvious solution is to remove the adds, until you can figure out where the bug is. My guess is, that some part of the code still assumes that adds should be inserted in different slots of the listing, than what currently is praxis. Now between items 1. & 2. and 14. & 15. of the cahe listing. If I remember correctly, this was different not so long ago. Link to comment
OpinioNate Posted January 17, 2008 Share Posted January 17, 2008 Got it. For some reason I can't get it to work with only 13 results (instead none are displayed), but I am able to reproduce with 33, 53, 73 etc. Thanks for reporting this. I will make sure it is examined right away. Link to comment
OpinioNate Posted January 19, 2008 Share Posted January 19, 2008 This bug has been fixed as of a few minutes ago. Thank you for your reports. Link to comment
Recommended Posts