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 137214 - Attempt to execute second statement causes ArrayIndexOutOfBoundsExceptoin
Summary: Attempt to execute second statement causes ArrayIndexOutOfBoundsExceptoin
Status: VERIFIED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: Show Data (show other bugs)
Version: 6.x
Hardware: Macintosh All
: P1 blocker (vote)
Assignee: _ ahimanikya
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-14 01:07 UTC by David Vancouvering
Modified: 2008-06-26 12:54 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Vancouvering 2008-06-14 01:07:17 UTC
* Create a DataView
* Run one statement - looks nice!
* Change the SQL text and execute again

java.lang.StringIndexOutOfBoundsException: String index out of range: 25
	at java.lang.String.substring(String.java:1765)
	at org.netbeans.modules.db.dataview.editor.DataViewSourceMultiViewElement.addPanel(DataViewSourceMultiViewElement.java:252)
	at
org.netbeans.modules.db.dataview.editor.DataViewSourceMultiViewElement.addResultSet(DataViewSourceMultiViewElement.java:235)
	at org.netbeans.modules.db.dataview.editor.ExecuteQuery.actionPerformed(ExecuteQuery.java:97)
	at
org.netbeans.modules.db.dataview.editor.DataViewSourceMultiViewElement$3.actionPerformed(DataViewSourceMultiViewElement.java:362)
Comment 2 Roman Mostyka 2008-06-26 12:54:31 UTC
Verified with build 080625.