Jump to content
Netzilla

Error Exporting Combat Record

Recommended Posts

I'm getting notified of an error while trying to export an html combat record.  The record is not created.  The following is the last entry in my trace.log file:

 

java.lang.NullPointerException
	at com.hero.HeroDesigner.getPrefabSkills(Unknown Source)
	at com.hero.ui.SkillsPanel.getAvailablePrefabs(Unknown Source)
	at com.hero.ui.AbilityPanel.updatePrefabs(Unknown Source)
	at com.hero.ui.MainContentPanel.updatePrefabs(Unknown Source)
	at com.hero.ui.MainContentPanel.reset(Unknown Source)
	at com.hero.HeroDesigner.setTemplate(Unknown Source)
	at com.hero.HeroDesigner.setActiveHero(Unknown Source)
	at com.hero.util.HTMLWriter.generateCombatRecord(Unknown Source)
	at com.hero.HeroDesigner$20.actionPerformed(Unknown Source)
	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.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$500(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$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.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)

Let me know if more info is needed.

Share this post


Link to post
Share on other sites

I'm not showing any issues when I run a test CR export...but the stack trace you posted certainly points to an issue within the code.  Can I get some more information from you?  In particular:

 

1. The character files that you are looking to export.  In particular, I want to see if any are using custom templates.

2. The specific combat record export format you're trying to use.

3. The list of steps you're taking to generate the error (e.g. "Load character 1, 2, and then 3...go to File -> Combat Record Export, select all three character files, select the combat record export format, and then the error happens.")

Share this post


Link to post
Share on other sites

These are the characters I was trying to create the combat record for along with the custom Rules and Character Templates.  I've also included the CombatSummary.hde used for export and the full trace.log file.

 

The steps I use to reproduce the error:

1. Load all the included characters (I've tried a few different orders and the results were the same).

2. Select File -> Export Combat Record.

3. Select all the characters (there should be 9).

4. Sort by DEX (descending) then SPD (descending).

5. Click 'Done'

6. Select "HTML - Detailed Combat Records - 6th Edition..."

7. Click 'Select'

8. Choose the file location (I named it "CombatRecord")

9. Click 'Save'

10. Error message pops up:

 

 

hd_files.zip

image.png

Share this post


Link to post
Share on other sites

Still not having any issues, though the .hde file you included is a character export, not a combat record export (.hdr)...so I'm just using a random combat record export file for the moment.

 

Start with the easy one:  update your copy of HD.  You're running the May update from this year...there was one last month that included a few fixes.  I don't think it would be anything directly affecting what you're doing, but it's always possible.

 

If that doesn't work, please post the .hdr file that you're using for the combat record export and I'll try again.

Share this post


Link to post
Share on other sites

Sorry about including the wrong export file.  Upgrading to the current version of HD seems to have fixed the issue.  Apparently I'm unable to keep track of updates without the old Tools -> Get Application Updates menu option.  I should have checked first.

 

BTW, in case you're curious, the actual export file is attached.

Html - Combat Record.zip

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×