This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 141685 - NumberFormatException: For input string: ""
Summary: NumberFormatException: For input string: ""
Status: VERIFIED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: SQL Editor (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P1 blocker (vote)
Assignee: John Baker
URL: http://statistics.netbeans.org/except...
Keywords:
: 141684 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-07-25 14:43 UTC by Roman Mostyka
Modified: 2008-07-28 16:54 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 81983


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Mostyka 2008-07-25 14:43:55 UTC
Build: NetBeans IDE Dev (Build 080725)
VM: Java HotSpot(TM) Client VM, 11.0-b13, Java(TM) SE Runtime Environment, 1.6.0_10-rc-b26
OS: Windows XP, 5.1, x86
User comments:
1. Execute statement.
2. Click "SQL History" button.

Result: NumberFormatException arises and "SQL History" isn't opened.

STACKTRACE: (first 10 lines)
java.lang.NumberFormatException: For input string: ""
        at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
        at java.lang.Integer.parseInt(Integer.java:468)
        at java.lang.Integer.parseInt(Integer.java:497)
        at org.netbeans.modules.db.sql.execute.ui.SQLHistoryPanel.<init>(SQLHistoryPanel.java:124)
        at org.netbeans.modules.db.sql.loader.SQLCloneableEditor$SQLExecutionImpl$4.run(SQLCloneableEditor.java:584)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
        at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
Comment 1 Roman Mostyka 2008-07-25 14:49:37 UTC
*** Issue 141684 has been marked as a duplicate of this issue. ***
Comment 2 John Baker 2008-07-25 18:42:11 UTC
Steps are not correct.  Before reopening SQL History, clear the save statements setting.
Comment 3 John Baker 2008-07-25 18:57:30 UTC
I see I didn't test with a clean userdir.
Comment 4 John Baker 2008-07-25 19:02:20 UTC
8798b062e8ce
Comment 5 Roman Mostyka 2008-07-28 16:54:23 UTC
Verified with build 080728.