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 131697 - StringIndexOutOfBoundsException when created project from existent code
Summary: StringIndexOutOfBoundsException when created project from existent code
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project Discovery (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Sergey Grinev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-01 10:16 UTC by Alexander Simon
Modified: 2013-05-17 15:07 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NPE (2.22 KB, text/plain)
2008-04-01 10:17 UTC, Alexander Simon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Simon 2008-04-01 10:16:51 UTC
NPE when created project from existent code for OpenSolaris.
Bug in discovery wizard in provider by build log.
It make impossible to use discovery by build log log.
Comment 1 Alexander Simon 2008-04-01 10:17:34 UTC
Created attachment 59461 [details]
NPE
Comment 2 Alexander Simon 2008-04-01 10:54:49 UTC
Sorry, StringIndexOutOfBoundsException
Comment 3 Jesse Grodnik 2008-04-01 16:14:46 UTC
Escaled to P1. Must fix in NetBeans 6.1.
Comment 4 Sergey Grinev 2008-04-01 17:50:05 UTC
can be fixed by patch:

--- a/cnd.dwarfdiscovery/src/org/netbeans/modules/cnd/dwarfdiscovery/provider/LogReader.java Fri Mar 28 19:04:19 2008 +0300
+++ b/cnd.dwarfdiscovery/src/org/netbeans/modules/cnd/dwarfdiscovery/provider/LogReader.java Tue Apr 01 19:26:18 2008 +0400
@@ -96,7 +96,7 @@ public class LogReader {
if (oneMoreLine == null) {
break;
}
- line = line.substring(0, line.length()-2) + " " + oneMoreLine.trim(); //NOI18N
+ line = line.substring(0, line.length() - 1) + " " + oneMoreLine.trim(); //NOI18N
}
line = trimBackApostropheCalls(line); 

Alexander, please, review fix.
Comment 5 Alexander Pepin 2008-04-01 18:17:01 UTC
The fix is verified in trunk
Comment 6 Sergey Grinev 2008-04-02 19:32:59 UTC
fix integrated to release61: http://hg.netbeans.org/main?cmd=changeset;node=9d6ce36365c9
Comment 7 Sergey Grinev 2008-04-02 20:28:28 UTC
edit: actual integration is here: http://hg.netbeans.org/release61/rev/d74196677725
Comment 8 Alexander Pepin 2008-04-07 15:24:27 UTC
verified in NB6.1 build 200804040802