diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | javax/swing/text/CompositeView.java | 10 |
2 files changed, 10 insertions, 5 deletions
@@ -1,5 +1,10 @@ 2006-11-25 Mark Wielaard <mark@klomp.org> + * javax/swing/text/CompositeView.java (modelToView): Never return + null. + +2006-11-25 Mark Wielaard <mark@klomp.org> + * javax/swing/text/html/TableView.java (calculateColumnRequirements): Check whether rowView instanceof RowView. (updateGrid): Likewise. diff --git a/javax/swing/text/CompositeView.java b/javax/swing/text/CompositeView.java index 90458b6f2..570fc955c 100644 --- a/javax/swing/text/CompositeView.java +++ b/javax/swing/text/CompositeView.java @@ -282,12 +282,12 @@ public abstract class CompositeView } } } - else - { - throw new BadLocationException("Position " + pos - + " is not represented by view.", pos); - } } + + if (ret == null) + throw new BadLocationException("Position " + pos + + " is not represented by view.", pos); + return ret; } |