File->Save As fails for master with companion not loaded


Opening an existing character, and using 'File->Save as...' to save as a new name, doesn't actually create the new save file.
It's not until you then close the character that it prompts to save, and actually creates the save file.

Things work as expected if you use this menu option for a brand new character.




James Dempsey
October 19, 2012, 3:34 PM

I'm having trouble reproducing this one (with an existing character). Are there any specific steps you take which can cause it to save or not save?

Dave Griffin
October 20, 2012, 4:25 AM

Looks like it may be caused by my homebrew, and a specific character... I too have had troubles recreating this with a standard source / new character... This is a character that (bug logged separately) gave me an issue with the summary indicating skill points remain to be allocated, while skills tab shows them all used (due to a homebrew skill being renamed?)

I get an NPE when running the save-as, which probably explains things (sorry, hadn't opened the log last time around!)

Would a view of the .pcg file help, or shall we consider this as user error, and I'll recreate the character

10:23:10.109 INFO main Main:149 Starting PCGen v5.17.20
10:23:10.156 INFO main LanguageBundle:131 Initialising language bundle with locale en_US.
10:23:37.640 INFO Thread-7 SourceFileLoader:519 Loading game 35e and sources [Campaign: Petes Tuesday night game].
10:24:20.31 INFO AWT-EventQueue-1 CharacterManager:173 Loaded character Barin (Barinatharan Solersduin) - D:\MyDocs\Dave\PCGen_Data\Characters\PeteClancyTue\Barin-4.pcg
10:25:08.906 SEVERE AWT-EventQueue-1 PCGen_Frame1:2939 Uncaught error - ignoring
at pcgen.gui2.facade.CompanionSupportFacadeImpl$2.referenceChanged(
at pcgen.core.facade.DefaultReferenceFacade.fireReferenceChangedEvent(
at pcgen.core.facade.DefaultReferenceFacade.setReference(
at pcgen.gui2.facade.CharacterFacadeImpl.setFile(
at pcgen.gui2.PCGenFrame.showSaveCharacterChooser(
at pcgen.gui2.PCGenActionMap$SaveAsAction.actionPerformed(
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(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$400(Unknown Source)
at java.awt.EventQueue$ Source)
at java.awt.EventQueue$ Source)
at Method)
at$1.doIntersectionPrivilege(Unknown Source)
at$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$ Source)
at java.awt.EventQueue$ Source)
at Method)
at$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at pcgen.gui.PCGen_Frame1$WaitCursorEventQueue.dispatchEvent(
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 Source)

James Dempsey
October 20, 2012, 3:58 PM

Specific issue with companion not loaded fixed and I've also added an error message if the save fails at that late stage.



James Dempsey


Dave Griffin







Pending User Input



Fix versions

Affects versions