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 249263 - NullPointerException at javax.swing.text.JTextComponent.setCaretPosition
Summary: NullPointerException at javax.swing.text.JTextComponent.setCaretPosition
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-10 12:58 UTC by petrk
Modified: 2015-01-10 18:27 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 214047


Attachments
stacktrace (2.98 KB, text/plain)
2014-12-10 12:58 UTC, petrk
Details

Note You need to log in before you can comment on or make changes to this bug.
Description petrk 2014-12-10 12:58:41 UTC
Build: NetBeans IDE Dev (Build 20141121-71c8640d3a10)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.51-b03, Java(TM) SE Runtime Environment, 1.7.0_51-b13
OS: Linux

User Comments:
petrk: Navigated back via Alt+Left Arrow to a file which was deleted




Stacktrace: 
java.lang.NullPointerException
   at javax.swing.text.JTextComponent.setCaretPosition(JTextComponent.java:1680)
   at org.netbeans.modules.editor.impl.actions.NavigationHistoryBackAction.show(NavigationHistoryBackAction.java:306)
   at org.netbeans.modules.editor.impl.actions.NavigationHistoryBackAction.actionPerformed(NavigationHistoryBackAction.java:201)
   at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1662)
   at javax.swing.JComponent.processKeyBinding(JComponent.java:2878)
   at javax.swing.JComponent.processKeyBindings(JComponent.java:2925)
Comment 1 petrk 2014-12-10 12:58:43 UTC
Created attachment 151012 [details]
stacktrace
Comment 2 Milutin Kristofic 2015-01-09 17:22:19 UTC
Thank you for reporting this bug. This change http://hg.netbeans.org/jet-main/rev/9241d9442552 should fix it.
Comment 3 Quality Engineering 2015-01-10 18:27:12 UTC
Integrated into 'main-silver', will be available in build *201501101317* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/9241d9442552
User: Milutin Kristofic <mkristofic@netbeans.org>
Log: #249263 - NullPointerException at javax.swing.text.JTextComponent.setCaretPosition