Remembered reports trigger glitches when used on different files

Issue #155 resolved
Adam Winer created an issue

Original issue 155 created by adam_winer on 2014-03-02T17:27:59.000Z:

Because remembered reports are saved as preferences, and not on the individual bsxm, things go oddly when you've got a report against a location that doesn't exist on that bsxm:

WARNING: Invalid JSON: {"type":"LOCATION","value":{"type":"IN","id":"sanfra"}} com.google.gson.JsonSyntaxException: Unknown ID: sanfra at com.scythebill.birdlist.ui.panels.reports.LocationQueryField.restore(LocationQueryField.java:216) at com.scythebill.birdlist.ui.panels.reports.StoredQueries.restore(StoredQueries.java:184) at com.scythebill.birdlist.ui.panels.reports.StoredQueries$StoredQuery.getCountableSightingPredicate(StoredQueries.java:104) at com.scythebill.birdlist.ui.panels.reports.StoredQueriesPanel$3.run(StoredQueriesPanel.java:160) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744)

Comments (1)

  1. Log in to comment