Auto Generate Equipment Causes Source Load Failure

Description

When loading sources Pathfinder Player's and Advanced Player's data with auto generate equipment turned on, the load fails with this log message

java.lang.NullPointerException
at pcgen.core.Equipment.getCostAdjustedForSize(Equipment.java:4030)
at pcgen.core.Equipment.resizeItem(Equipment.java:3575)
at pcgen.core.EquipmentList.createItem(EquipmentList.java:645)
at pcgen.core.EquipmentList.createItem(EquipmentList.java:608)
at pcgen.core.EquipmentList.autogenerateRacialEquipment(EquipmentList.java:553)
at pcgen.core.EquipmentList.autoGenerateEquipment(EquipmentList.java:393)
at pcgen.persistence.SourceFileLoader.loadCampaigns(SourceFileLoader.java:496)
at pcgen.persistence.SourceFileLoader.execute(SourceFileLoader.java:214)
at pcgen.gui2.PCGenStatusBar$TaskExecutor.construct(PCGenStatusBar.java:156)
at pcgen.gui2.PCGenStatusBar$TaskExecutor.construct(PCGenStatusBar.java:119)
at pcgen.gui2.util.SwingWorker$2.run(SwingWorker.java:146)
at java.lang.Thread.run(Unknown Source)

Environment

None

Activity

Show:
James Dempsey
May 16, 2012, 2:54 PM

A number of places in the resizing code were assuming a pc was available when resizing gear. This has been fixed.

Assignee

James Dempsey

Reporter

James Dempsey

Labels

None

Theme

None

Epic/Theme

None

Pending User Input

None

Fix versions

Affects versions

Priority

Minor
Configure