summaryrefslogtreecommitdiff
path: root/javax/swing/text
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2006-11-25 19:28:42 +0000
committerMark Wielaard <mark@klomp.org>2006-11-25 19:28:42 +0000
commit150c84b7c5588c2085a7463af3c48ac3dbbdd5fa (patch)
treecd4460b789582a7bdf26d21dcea2e2fa31bd3419 /javax/swing/text
parent276707783cc7f4ee9ea55c7f1dfcb0b2192db392 (diff)
downloadclasspath-150c84b7c5588c2085a7463af3c48ac3dbbdd5fa.tar.gz
* javax/swing/text/CompositeView.java (modelToView): Never return
null.
Diffstat (limited to 'javax/swing/text')
-rw-r--r--javax/swing/text/CompositeView.java10
1 files changed, 5 insertions, 5 deletions
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;
}