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.
From the exception report http://statistics.netbeans.org/analytics/detail.do?id=132872: java.lang.StringIndexOutOfBoundsException: String index out of range: 0 at java.lang.String.charAt(String.java:687) at org.netbeans.modules.cnd.debugger.gdb.GdbDebugger.createShareTab(GdbDebugger.java:1770) at org.netbeans.modules.cnd.debugger.gdb.GdbDebugger.resultRecord(GdbDebugger.java:1049) at org.netbeans.modules.cnd.debugger.gdb.proxy.GdbProxyEngine.processMessage(GdbProxyEngine.java:357) at org.netbeans.modules.cnd.debugger.gdb.proxy.GdbProxyEngine.access$100(GdbProxyEngine.java:76) at org.netbeans.modules.cnd.debugger.gdb.proxy.GdbProxyEngine$.run(GdbProxyEngine.java:238) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997) This may be connected with issue 142889
link to this issue added to issue #142889
This issue has already 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=132872
Trivial fix
Fixed in http://hg.netbeans.org/main/rev/66a3add56e01
Integrated into 'main-golden', will be available in build *200811080201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/66a3add56e01 User: Gordon Prieur <gordonp@netbeans.org> Log: Fixed IZ #151481 SIOOBE in GdbDebugger.createShareTab.
OK in Build 200812230201
*** Issue 156535 has been marked as a duplicate of this issue. ***
Hi, This issue is said to be fixed but is it also fixed in the released version 6.5 (with updates)?? This because I am still having trouble with this issue there.. regards, Joris
Joris, the bug was *not* fixed in 6.5. I'm changing Target Milestone to 7.0 since thats where it was really fixed and verified. Alexander, can you consider nominating this issue for patch 2? Its a trivial fix, changing "if (line.charAt(0))" to "if (line.length() > 0 && line.charAt(0))". Support: There are several other changes in the changeset related to findbugs cleanup, but those parts are not actually part of this fix and don't need to be backported to a patch). The line mentioned above is all that would be needed in a patch.
It would be good to have this in the patch2
fix backported into release65_fixes branch http://hg.netbeans.org/release65_fixes/rev/638317b4663b
verified in patch2