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.
caretUpdatePending = false;
JTextComponent c = component;
if (c != null) {
if (!c.isValid()) {
c.validate();
}
BaseTextUI ui = (BaseTextUI)c.getUI();
BaseDocument doc = Utilities.getDocument(c);
if (doc != null) {