Bug #5898
closedSome issue in the RelicationPolicyPage
0%
Description
Hi, ben:
When i finished the new data package wizard and click "add a new entity link", i got this error:
[java] Exception in thread "AWT-EventQueue-0" java.lang.NumberFormatException: For input string: ""
[java] at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
[java] at java.lang.Integer.parseInt(Integer.java:504)
[java] at java.lang.Integer.valueOf(Integer.java:582)
[java] at edu.ucsb.nceas.morpho.plugins.datapackagewizard.pages.ReplicationPolicyPage.getReplicationPolicy(ReplicationPolicyPage.java:229)
[java] at edu.ucsb.nceas.morpho.plugins.datapackagewizard.pages.ReplicationPolicyPage.getPageData(ReplicationPolicyPage.java:336)
[java] at edu.ucsb.nceas.morpho.plugins.datapackagewizard.pages.ReplicationPolicyPage.getPageData(ReplicationPolicyPage.java:319)
[java] at edu.ucsb.nceas.morpho.plugins.datapackagewizard.WizardContainerFrame.addPageDataToResultsMap(WizardContainerFrame.java:1961)
[java] at edu.ucsb.nceas.morpho.plugins.datapackagewizard.WizardContainerFrame.collectDataFromPages(WizardContainerFrame.java:1058)
[java] at edu.ucsb.nceas.morpho.plugins.datapackagewizard.WizardContainerFrame.finishAction(WizardContainerFrame.java:906)
[java] at edu.ucsb.nceas.morpho.plugins.datapackagewizard.pages.Summary$1.execute(Summary.java:248)
[java] at edu.ucsb.nceas.morpho.util.GUIAction.actionPerformed(GUIAction.java:410)
[java] at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
[java] at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
[java] at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
[java] at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
[java] at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
[java] at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
[java] at java.awt.Component.processMouseEvent(Component.java:6505)
[java] at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
[java] at java.awt.Component.processEvent(Component.java:6270)
[java] at java.awt.Container.processEvent(Container.java:2229)
[java] at java.awt.Component.dispatchEventImpl(Component.java:4861)
[java] at java.awt.Container.dispatchEventImpl(Container.java:2287)
[java] at java.awt.Component.dispatchEvent(Component.java:4687)
[java] at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
[java] at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
[java] at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
[java] at java.awt.Container.dispatchEventImpl(Container.java:2273)
[java] at java.awt.Window.dispatchEventImpl(Window.java:2719)
[java] at java.awt.Component.dispatchEvent(Component.java:4687)
[java] at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:729)
[java] at java.awt.EventQueue.access$200(EventQueue.java:103)
[java] at java.awt.EventQueue$3.run(EventQueue.java:688)
[java] at java.awt.EventQueue$3.run(EventQueue.java:686)
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
[java] at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
[java] at java.awt.EventQueue$4.run(EventQueue.java:702)
[java] at java.awt.EventQueue$4.run(EventQueue.java:700)
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
[java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:699)
[java] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
[java] at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
[java] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
[java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
[java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
[java] at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Updated by ben leinfelder over 11 years ago
Now defaulting to 0 in case they leave blank.