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 238659 - NPE in formatting tests
Summary: NPE in formatting tests
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-21 14:45 UTC by Alexander Pepin
Modified: 2013-12-06 15:00 UTC (History)
1 user (show)

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 Pepin 2013-11-21 14:45:59 UTC
In the last 7.4.1 build the following exception was found in IDE log after performing "Formatting" tests:

java.lang.NullPointerException
	at javax.swing.text.JTextComponent.getSelectionStart(JTextComponent.java:1819)
	at org.netbeans.modules.cnd.refactoring.hints.LineFactoryTask.run(LineFactoryTask.java:134)
	at org.netbeans.modules.cnd.refactoring.hints.LineFactoryTask.run(LineFactoryTask.java:114)
	at org.netbeans.modules.parsing.impl.TaskProcessor.callParserResultTask(TaskProcessor.java:568)
[catch] at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:744)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1432)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2042)
Comment 1 Alexander Simon 2013-11-21 15:32:35 UTC
fixed, change set:
f8dd01dcaccf
Comment 2 igor_nikiforov 2013-12-02 14:25:46 UTC
Integrated to releases:
  bdffd969d284
Comment 3 Alexander Pepin 2013-12-06 15:00:16 UTC
verified in OSS IDE built on 7.4 patch2 candidate