Error changing race when skills chosen

Description

I've been getting weird java errors like the one below on and off. This is one I've been able to replicate several times. (This is with the latest autobuild at the time of this posting.)

Steps to replicate:
1.Load with following sources from the Advanced source menu for pathfinder: Core Rulebook, Bestiary, Advanced Player's Guide, Ultimate Combat, Ultimate Magic, Bestiary 3, Ultimate Equipment
2. Set race to valkyrie
3. Click on inventory
4. Click on purchasesubtap
5. Check the "Allow Debt" button
6. Type in full plate and purchase a set
7. Click on the Skills Subtab
8. Buy 1 rank in Sense Motive, then 1 rank in Ride
9. Click on summary subtab
10. Select race to Legion archon
11. It spits out the error.
12. Go to character sheet, it shows your race is still valkyrie but hp are 0 and CR is -

17:43:06.590 INFO main Main:145 Starting PCGen v6.05.00-dev
17:43:06.622 INFO main LanguageBundle:131 Initialising language bundle with locale en_US.
17:43:23.35 INFO Thread-6 SourceFileLoader:530 Loading game Pathfinder_RPG and sources [Core Rulebook, Bestiary, Advanced Player's Guide, Ultimate Combat, Ultimate Magic, Bestiary 3, Ultimate Equipment].
17:43:49.305 INFO AWT-EventQueue-0 CharacterManager:114 Created new character Unnamed 1.
17:44:03.945 INFO AWT-EventQueue-0 CharacterFacadeImpl:1904 Unnamed 1: Setting race to Valkyrie
17:45:15.274 INFO AWT-EventQueue-0 CharacterFacadeImpl:1904 Unnamed 1: Setting race to Legion Archon
17:45:19.395 SEVERE AWT-EventQueue-0 Main:596 Uncaught error - ignoring
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.rangeCheck(Unknown Source)
at java.util.ArrayList.get(Unknown Source)
at pcgen.core.analysis.SkillRankControl.removeSkillsForTopLevel(SkillRankControl.java:357)
at pcgen.core.PlayerCharacter.incrementClassLevel(PlayerCharacter.java:7372)
at pcgen.core.PlayerCharacter.incrementClassLevel(PlayerCharacter.java:7255)
at pcgen.cdom.facet.MonsterClassFacet.dataRemoved(MonsterClassFacet.java:180)
at pcgen.cdom.facet.base.AbstractDataFacet.fireDataFacetChangeEvent(AbstractDataFacet.java:263)
at pcgen.cdom.facet.base.AbstractDataFacet.fireDataFacetChangeEvent(AbstractDataFacet.java:201)
at pcgen.cdom.facet.base.AbstractItemFacet.set(AbstractItemFacet.java:65)
at pcgen.cdom.facet.input.RaceInputFacet.directSet(RaceInputFacet.java:116)
at pcgen.cdom.facet.input.RaceInputFacet.set(RaceInputFacet.java:58)
at pcgen.core.PlayerCharacter.setRace(PlayerCharacter.java:3776)
at pcgen.gui2.facade.CharacterFacadeImpl.setRace(CharacterFacadeImpl.java:1906)
at pcgen.gui2.tabs.SummaryInfoTab$ComboBoxModelHandler$6.commitSelectedItem(SummaryInfoTab.java:969)
at pcgen.gui2.tabs.models.DeferredCharacterComboBoxModel$1.run(DeferredCharacterComboBoxModel.java:134)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$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)

Environment

None

Activity

Show:
James Dempsey
December 6, 2014, 9:18 PM

The rollback of skills triggered by removing racial classes was expecting a class to be present. It now copes with no classes remaining during the transition from one race to another. The skills assigned to the old racial class will be removed.

Fixed

Assignee

James Dempsey

Reporter

Chris Peterson

Labels

Theme

None

Epic/Theme

None

Pending User Input

None

Fix versions

Affects versions

Priority

Minor
Configure