[NewUI / Pathfinder data] Switched deity which caused an error

Description

Same setup is https://pcgenorg.atlassian.net/browse/CODE-1396, but switch deity from Gorum (CN) to Desna (CG) and the following error was displayed in the Dos console.

Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: pcgen.core.PCAlignment cannot be cast to pcgen.core.facade.De
ityFacade
at pcgen.gui2.tabs.DomainInfoTab$SelectDeityAction.actionPerformed(DomainInfoTab.java:370)
at pcgen.gui2.util.JTableEx.fireActionEvent(JTableEx.java:149)
at pcgen.gui2.util.JTableEx.access$100(JTableEx.java:55)
at pcgen.gui2.util.JTableEx$1.mouseClicked(JTableEx.java:125)
at java.awt.AWTEventMulticaster.mouseClicked(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$000(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$2.run(Unknown Source)
at java.awt.EventQueue$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

– david
Papa.DRB

Environment

None

Activity

Show:
James Dempsey
March 20, 2012, 2:44 PM

It looks like you had used the alignment.Deity view and had an alignment selected when you hit the Select button. The code will only set the deity when a deity is selected now.

David Bender
March 26, 2012, 6:49 AM

Works great, with 2012/03/25 0800 ET download.

Assignee

James Dempsey

Reporter

David Bender

Labels

None

Theme

None

Epic/Theme

None

Pending User Input

None

Components

Fix versions

Affects versions

Priority

Minor
Configure