Creating custom checklists: errors if you try to change away from a bird taxonomy

Issue #475 new
Adam Winer created an issue

During custom checklist creation, exceptions get thrown if you try to switch to a non-bird taxonomy:

Jan 30, 2020 6:31:35 PM com.google.common.eventbus.EventBus$LoggingHandler handleException

SEVERE: Exception thrown by subscriber method taxonomyChanged(com.scythebill.birdlist.ui.events.TaxonomyChangedEvent) on subscriber com.scythebill.birdlist.ui.panels.location.EditChecklistPanel[,0,0,1057x749,invalid,layout=javax.swing.GroupLayout,alignmentX=0.0,alignmentY=0.0,border=javax.swing.border.EmptyBorder@3ed6e6f5,flags=9,maximumSize=,minimumSize=,preferredSize=] when dispatching event: com.scythebill.birdlist.ui.events.TaxonomyChangedEvent@31865369

java.lang.NullPointerException: Could not get taxon for "spArdeaher"

at com.scythebill.birdlist.model.sighting.SightingTaxons$SingleSightingTaxon.resolveInternal(SightingTaxons.java:145)

at com.scythebill.birdlist.model.taxa.TaxonomyImpl.resolveInto(TaxonomyImpl.java:242)

at com.scythebill.birdlist.model.sighting.SightingTaxons$SingleSightingTaxon.resolve(SightingTaxons.java:138)

at com.scythebill.birdlist.ui.panels.location.EditChecklistPanel$ChecklistTableModel.<init>(EditChecklistPanel.java:235)

at com.scythebill.birdlist.ui.panels.location.EditChecklistPanel.setTaxonomy(EditChecklistPanel.java:626)

at com.scythebill.birdlist.ui.panels.location.EditChecklistPanel.taxonomyChanged(EditChecklistPanel.java:615)

<SNIP>

at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:67)

at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:108)

at com.google.common.eventbus.EventBus.post(EventBus.java:212)

at com.scythebill.birdlist.ui.events.TaxonomyStore.setTaxonomy(TaxonomyStore.java:71)

This doesn’t look like it really breaks anything, but it should get blocked, since it certainly doesn’t do what the user wants.

Comments (0)

  1. Log in to comment