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 255605 - StringIndexOutOfBoundsException in format string hint
Summary: StringIndexOutOfBoundsException in format string hint
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.1
Hardware: PC Solaris
: P3 normal (vote)
Assignee: danilasergeyev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-28 09:49 UTC by Alexander Simon
Modified: 2015-09-29 01:18 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 Alexander Simon 2015-09-28 09:49:41 UTC
Exception in log on git project, file fast-import.c:

java.lang.StringIndexOutOfBoundsException: String index out of range: 9
	at java.lang.String.substring(String.java:1907)
	at org.netbeans.modules.cnd.highlight.hints.formatstring.FormattedPrintFunction.processFormatString(FormattedPrintFunction.java:177)
	at org.netbeans.modules.cnd.highlight.hints.formatstring.FormattedPrintFunction.validate(FormattedPrintFunction.java:86)
	at org.netbeans.modules.cnd.highlight.hints.formatstring.FormatStringAudit.doGetErrors(FormatStringAudit.java:242)
	at org.netbeans.modules.cnd.highlight.hints.CsmHintProvider.doGetErrors(CsmHintProvider.java:176)
	at org.netbeans.modules.cnd.api.model.syntaxerr.CsmErrorProvider.getErrors(CsmErrorProvider.java:131)
	at org.netbeans.modules.cnd.highlight.error.HighlightProvider$RunnableImpl.run(HighlightProvider.java:368)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)
	at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68)
	at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2058)
Comment 1 danilasergeyev 2015-09-28 10:15:55 UTC
fixed, change set:
https://hg.netbeans.org/cnd-main/rev/16c1d1983251
Comment 2 Quality Engineering 2015-09-29 01:18:42 UTC
Integrated into 'main-silver', will be available in build *201509290002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/16c1d1983251
User: Danila Sergeyev <danilasergeyev@netbeans.org>
Log: fix bug #255605 StringIndexOutOfBoundsException in format string hint