[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug swing/27418] New: NPE in BasicTextUI.damageRange.
From: |
audriusa at bluewin dot ch |
Subject: |
[Bug swing/27418] New: NPE in BasicTextUI.damageRange. |
Date: |
4 May 2006 11:04:15 -0000 |
The BasicTextUI.modelToView may return null, but damageRangle does not expect
this. This causes NPE in the Protege OWL plugin during the attempt to add the
new Protege class:
java.lang.NullPointerException
at javax.swing.plaf.basic.BasicTextUI.damageRange(BasicTextUI.java:1044)
at javax.swing.plaf.basic.BasicTextUI.damageRange(BasicTextUI.java:1007)
at
javax.swing.text.DefaultHighlighter.addHighlight(DefaultHighlighter.java:264)
at javax.swing.text.DefaultCaret.handleHighlight(DefaultCaret.java:763)
at javax.swing.text.DefaultCaret.moveDotImpl(DefaultCaret.java:1015)
at javax.swing.text.DefaultCaret.moveDot(DefaultCaret.java:1003)
at
javax.swing.text.JTextComponent.moveCaretPosition(JTextComponent.java:1489)
at javax.swing.text.JTextComponent.select(JTextComponent.java:1568)
at javax.swing.text.JTextComponent.selectAll(JTextComponent.java:1576)
at
edu.stanford.smi.protege.widget.TextComponentWidget$4.run(TextComponentWidget.java:165)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:200)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:465)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:75)
The NPE can be avoided by checking for null here, but probably the null should
be never returned?
--
Summary: NPE in BasicTextUI.damageRange.
Product: classpath
Version: 0.90
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: swing
AssignedTo: roman at kennke dot org
ReportedBy: audriusa at bluewin dot ch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27418
- [Bug swing/27418] New: NPE in BasicTextUI.damageRange.,
audriusa at bluewin dot ch <=